mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2025-01-25 03:32:02 +02:00
Fixed windows ttf monospace misdetection and removed work around
This commit is contained in:
parent
ec419a80ba
commit
ab4f00e3ff
@ -101,9 +101,6 @@ if args.fontawesome and args.octicons and args.pomicons and args.powerlineextra
|
|||||||
if args.single:
|
if args.single:
|
||||||
additionalFontNameSuffix += " Mono"
|
additionalFontNameSuffix += " Mono"
|
||||||
verboseAdditionalFontNameSuffix += " Mono"
|
verboseAdditionalFontNameSuffix += " Mono"
|
||||||
# Windows doesn't properly detect patched ttf font files as monotype, but works properly with otf, so force the issue
|
|
||||||
if args.windows and args.extension=="":
|
|
||||||
args.extension = "otf"
|
|
||||||
|
|
||||||
sourceFont = fontforge.open(args.font)
|
sourceFont = fontforge.open(args.font)
|
||||||
|
|
||||||
@ -533,6 +530,7 @@ def copy_glyphs(sourceFont, sourceFontStart, sourceFontEnd, symbolFont, symbolFo
|
|||||||
# This only applies to left-aligned glyphs because the glyph is scaled to the right
|
# This only applies to left-aligned glyphs because the glyph is scaled to the right
|
||||||
sourceFont.transform(psMat.translate(-overlap_width, 0))
|
sourceFont.transform(psMat.translate(-overlap_width, 0))
|
||||||
|
|
||||||
|
if args.single:
|
||||||
# Ensure the font is considered monospaced on Windows
|
# Ensure the font is considered monospaced on Windows
|
||||||
sourceFont[currentSourceFontGlyph].width = font_dim['width']
|
sourceFont[currentSourceFontGlyph].width = font_dim['width']
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user