You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DirectWrite, Chrome and many other applications consider variable font instances to be different font faces. However the all_fonts iterator gets completely confused by this.
When it accesses the font count here, this is includes the font instances:
It turns the whole thing into a path + font face index pair, which completely throws away all the font instance information, meaning that for certain fonts, the iterator contains the same handle many times.
I'd say the iterator should either iterate over pairs of the handle and the font instance name or index, or that information should be part of the handle.
The text was updated successfully, but these errors were encountered:
DirectWrite, Chrome and many other applications consider variable font instances to be different font faces. However the
all_fonts
iterator gets completely confused by this.When it accesses the font count here, this is includes the font instances:
font-kit/src/sources/directwrite.rs
Line 43 in 1bfbc93
The dwrite_font then still understands that we are talking about the specific font instance index, not a font face index:
font-kit/src/sources/directwrite.rs
Line 44 in 1bfbc93
However when it gets turned into the font handle:
font-kit/src/sources/directwrite.rs
Line 45 in 1bfbc93
It turns the whole thing into a path + font face index pair, which completely throws away all the font instance information, meaning that for certain fonts, the iterator contains the same handle many times.
I'd say the iterator should either iterate over pairs of the handle and the font instance name or index, or that information should be part of the handle.
The text was updated successfully, but these errors were encountered: