Closed dhardy closed 3 years ago
This is partially done by #46, #47, #48, #49:
fontdb
to find system fonts plus a hacky list (hardcoded but adjustable at run-time) of font names as fallbacks. But this misses another problem which deserves its own issue: efficiently selecting a suitable font.The first point deserves a new issue; otherwise this is done.
This is a meta/planning issue for the use of fallback fonts for glyphs missing from the current font. There are several sub-issues:
ab_glyph::Font
implementation or closer tottf_parser::Face
. See https://github.com/RazrFalcon/ttf-parser/issues/42ascender
andline_gap
— possibly just taking the first font's values or using the maximum — or perhaps the maximum over fonts used on the current line.harfbuzz_rs::shape
. It appears that we must use a separate run for each font, which adds more complexity.