Open RagibHasin opened 1 month ago
fontdb
isn't designed to replace the system API and not designed to replicate its edge cases.
Is this Windows behavior specified anywhere? Are you suggesting we're suppose to sort fonts by data/time as well?
If we don't want to access Windows font management APIs, then I think there are two options:
I will think about. Low priority.
As this crate loads every font from
C:\Windows\Fonts
directly, it loads a potentially older version of a font, if the older version comes first in the file list.For example, in
C:\Windows\Fonts
Here
iosevka-ahad-regular_0.ttf
is of a later date and is registered with the Windows registry. However, asiosevka-ahad-regular.ttf
comes first, it gets loaded which leads to a deviation of behavior from other software.