(varfont: fontTools.ttLib.TTFont)
| 143 | |
| 144 | |
| 145 | def set_overlap_flag(varfont: fontTools.ttLib.TTFont) -> fontTools.ttLib.TTFont: |
| 146 | glyf = cast(_g_l_y_f.table__g_l_y_f, varfont["glyf"]) |
| 147 | for glyph_name in glyf.keys(): |
| 148 | glyph = glyf[glyph_name] |
| 149 | if glyph.isComposite(): |
| 150 | # Set OVERLAP_COMPOUND bit for compound glyphs |
| 151 | glyph.components[0].flags |= 0x400 |
| 152 | elif glyph.numberOfContours > 0: |
| 153 | # Set OVERLAP_SIMPLE bit for simple glyphs |
| 154 | glyph.flags[0] |= 0x40 |
| 155 | |
| 156 | def prepare_fonts( |
| 157 | designspace: fontTools.designspaceLib.DesignSpaceDocument, name: str |
no outgoing calls
no test coverage detected