fontdb icon indicating copy to clipboard operation
fontdb copied to clipboard

Windows system font loader loads older font when multiple version is present

Open RagibHasin opened this issue 6 months ago • 3 comments

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

     LastWriteTime      Name
     -------------      ----
16 Mar 23  3:21 PM      iosevka-ahad-regular.ttf
17 Mar 23  8:59 PM      iosevka-ahad-regular_0.ttf

Here iosevka-ahad-regular_0.ttf is of a later date and is registered with the Windows registry. However, as iosevka-ahad-regular.ttf comes first, it gets loaded which leads to a deviation of behavior from other software.

RagibHasin avatar Aug 08 '24 05:08 RagibHasin