Example #1
0
def buildBaseGlyphV1Record(
        baseGlyph: str, layers: Union[_LayersList,
                                      ot.LayerV1List]) -> ot.BaseGlyphV1List:
    self = ot.BaseGlyphV1Record()
    self.BaseGlyph = baseGlyph
    if not isinstance(layers, ot.LayerV1List):
        layers = buildLayerV1List(layers)
    self.LayerV1List = layers
    return self
Example #2
0
def buildBaseGlyphV1Record(baseGlyph: str, layerBuilder: LayerV1ListBuilder,
                           paint: _PaintInput) -> ot.BaseGlyphV1List:
    self = ot.BaseGlyphV1Record()
    self.BaseGlyph = baseGlyph
    self.Paint = layerBuilder.buildPaint(paint)
    return self