moi15moi
moi15moi
> (notice I included `platEncID` to make the match even more explicit) I just tried to mimic [FontConfig](https://gitlab.freedesktop.org/fontconfig/fontconfig/-/blob/d863f6778915f7dd224c98c814247ec292904e30/src/fcfreetype.c#L1111-1125), but if you prefer it like that, it is still really close...
I have tried to look how GDI create face font variable font. Here is a gist where I have tried to implement, with fonttools, how GDI create a "face". See:...
> I find that asking GDI for simply “Segoe UI Variable” _doesn’t find any font at all_ This is normal. It happen because none of the [AxisValue](https://learn.microsoft.com/en-us/typography/opentype/spec/stat#axis-value-tables) use the flags...
Here is currently a pseudo-code of the algorithm rcombs found (currently, it is what #678 implemented) ```py get_similarity_score(font_face: FontFace, requested: AssStyle) -> int: score = 0 if requested.italic and not...
> The TrueType driver infers it from PANOSE fields in the OS/2 table, and the logic might even vary depending on the selected charset. Thank for pointing that out! I...
@rougier Have you found any alternative?
I just found this issue: https://gitlab.freedesktop.org/freetype/freetype/-/issues/1098 This may help you
Exactly. Then, when the font filename contain an non ascii char and the platform is windows, we could simply create a memory font.
I tested with libass which use freetype and it can correctly decode the cmap. GDI and DirectWrite also decode it correctly. Why fonttools should reject it?
Here is how SubstitleEdit implemented it: How it "detect" the presence of ``X-TIMESTAMP-MAP`` - https://github.com/SubtitleEdit/subtitleedit/blob/1304bccf757009d8b234f60fa7cc7e951ba46447/src/libse/SubtitleFormats/WebVTT.cs#L270-L274 - https://github.com/SubtitleEdit/subtitleedit/blob/1304bccf757009d8b234f60fa7cc7e951ba46447/src/libse/SubtitleFormats/WebVTT.cs#L233-L248 The function that return of how much the subtitle need to be delayed:...