(self, glyphwise=False, shapewise=False, wordwise=False, linewise=False)
| 136 | return p |
| 137 | |
| 138 | def two_dimensional(self, glyphwise=False, shapewise=False, wordwise=False, linewise=False): |
| 139 | p = self.base_vectors() |
| 140 | |
| 141 | if self.st2.script_enabled: |
| 142 | p = self.apply_script(p).up() |
| 143 | |
| 144 | if wordwise: |
| 145 | p = p.wordPens(consolidate=True) |
| 146 | p.collapse() |
| 147 | elif not linewise: |
| 148 | p.collapse() |
| 149 | |
| 150 | if self.st2.combine_glyphs and not glyphwise and not wordwise and not linewise: |
| 151 | p = p.pen() |
| 152 | |
| 153 | if linewise: |
| 154 | for idx, line in enumerate(p): |
| 155 | p[idx] = line.pen() |
| 156 | |
| 157 | if self.st2.remove_overlap: |
| 158 | p.removeOverlap(use_skia_pathops_draw=False) |
| 159 | |
| 160 | if self.st2.outline: |
| 161 | p = self.apply_outline(p, shapewise) |
| 162 | |
| 163 | if self.st2.block: |
| 164 | p = self.add_blocks(p) |
| 165 | |
| 166 | return p |
| 167 | |
| 168 | def base_style_kwargs(self): |
| 169 | kp = None |
no test coverage detected