mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2024-12-07 17:06:25 +02:00
font-patcher: Finally set fsSelection
fontforge has an undocumented call to set the fsSelection bits. Never rely on documentation :-( Found this here: https://github.com/fontforge/fontforge/issues/3174 And the readback values are actually not read from the source font, so we do not use them. Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
parent
263b1693c9
commit
cc099ec965
@ -305,10 +305,5 @@ class FontnameParser:
|
||||
|
||||
font.sfnt_names = tuple(sfnt_list)
|
||||
|
||||
font.macstyle = self.macstyle(font.macstyle)
|
||||
|
||||
# TODO: fsSelection, unfortunately fontforge does not support that directly
|
||||
# but has some automaton to deduce it from macstyle, which means loosing information
|
||||
# https://github.com/fontforge/fontforge/issues/2131
|
||||
# https://github.com/jsomedon/Fix-fsSelection-bits-for-SF-fonts/blob/main/fix_fsSelection.sh
|
||||
# Well, lets ignore it for now, as we always did ;)
|
||||
font.macstyle = self.macstyle(0)
|
||||
font.os2_stylemap = self.fs_selection(0)
|
||||
|
Loading…
Reference in New Issue
Block a user