arch1t3cht / Aegisub

Cross-platform advanced subtitle editor, with new feature branches. Read the README on the feature branch.
http://www.aegisub.org
Other
805 stars 34 forks source link

[FontCollector] Add a warning message if a font has variable axes #117

Open moi15moi opened 8 months ago

moi15moi commented 8 months ago

Currently, libass doesn't support variable font: https://github.com/libass/libass/issues/386. This means that when the user works in Aegisub, the font may works because it use the os API, but when the font is muxed into a mkv, it may not be supported. For this reason, in the FontCollector, there should be a warning like: Warning: The font X is a variable font. Libass doesn't properly support those font. This leads to unknown behaviour when the font is muxed to a mkv if a font has variable axes.

Since the FontCollector depend on various API depending of the OS, here are the function that could help us to know if a font is a variable font: