mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
Fix the weight of fonts that use 1-10
This commit is contained in:
parent
596332763b
commit
761a121452
@ -64,6 +64,10 @@ FontMatch process_descriptor(NSFontDescriptor *desc, NSString *name) {
|
||||
ret.width = get_16(bytes, 6);
|
||||
}
|
||||
|
||||
// Some font designers appear to be under the impression that weights are 1-10
|
||||
if (ret.weight < 10)
|
||||
ret.weight *= 100;
|
||||
|
||||
ret.family_match = [font.familyName isEqualToString:name];
|
||||
ret.codepoints = [desc objectForKey:NSFontCharacterSetAttribute];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user