FL.fake.Font.FakeFont
- class FL.fake.Font.FakeFont
Bases:
Copyable,GuideMixin,GuidePropertiesMixinMethods
__init__()fake_binary_from_path(fontType, file_path)Assign a binary file from a path.
fake_binary_get(fontType)Deselect all glyphs.
fake_deserialize_axis(data)fake_deserialize_features(features)fake_deserialize_guide_properties(data)fake_deserialize_guides(data)fake_select(gid[, value])Change selection status for glyph_index.
fake_serialize_axis()fake_serialize_features()fake_serialize_guide_properties()fake_serialize_guides()fake_set_class_flags(flags)Set the kerning class flags from a list of str ("L", "R", "LR", ...)
Is called from FontLab.UpdateFont()
Attributes
fake_sparse_jsonfake_vfb_objectReturns the FL.fake.FakeKerning object, which can be used to manipulate the font's kerning data.
- fake_binary_from_path(fontType: int, file_path: str) None
Assign a binary file from a path. This will be used to fake the FakeLab.GenerateFont() method.
- property fake_kerning: FakeKerning
Returns the FL.fake.FakeKerning object, which can be used to manipulate the font’s kerning data.
- fake_select(gid: str | Uni | int, value: bool | None = None) None
Change selection status for glyph_index. >>> f = Font() >>> f.fake_select(1, False) >>> print(f._selection) set() >>> f.fake_select(1, True) >>> print(f._selection) {1} >>> f.fake_select(3, True) >>> print(f._selection) {1, 3} >>> f.fake_select(2, False) >>> print(f._selection) {1, 3} >>> f.fake_select(1, False) >>> print(f._selection) {3}