Rename rf module to ufo
This commit is contained in:
parent
7b816131f8
commit
17e25e8ec9
12
README.md
12
README.md
@ -1,12 +1,12 @@
|
|||||||
# cu2qu
|
# cu2qu
|
||||||
|
|
||||||
This library provides functions which take in RoboFab objects (RFonts or their
|
This library provides functions which take in UFO objects (Defcon Fonts or
|
||||||
children) and converts any cubic curves to quadratic. The most useful function
|
Robofab RFonts) and converts any cubic curves to quadratic. The most useful
|
||||||
is probably `fonts_to_quadratic`:
|
function is probably `fonts_to_quadratic`:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from robofab.world import OpenFont
|
from defcon import Font
|
||||||
from cu2qu.rf import fonts_to_quadratic
|
from cu2qu.ufo import fonts_to_quadratic
|
||||||
thin_font = OpenFont('MyFont-Thin.ufo')
|
thin_font = OpenFont('MyFont-Thin.ufo')
|
||||||
bold_font = OpenFont('MyFont-Bold.ufo')
|
bold_font = OpenFont('MyFont-Bold.ufo')
|
||||||
fonts_to_quadratic([thin_font, bold_font])
|
fonts_to_quadratic([thin_font, bold_font])
|
||||||
@ -53,5 +53,3 @@ for font in [thin_font, bold_font]:
|
|||||||
fonts_to_quadratic([font], stats=stats)
|
fonts_to_quadratic([font], stats=stats)
|
||||||
# "stats" will report combined statistics for both fonts
|
# "stats" will report combined statistics for both fonts
|
||||||
```
|
```
|
||||||
|
|
||||||
See the source for functions which operate on glyphs and segments.
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user