The Standard Bezier format

February 13, 2019 · View on GitHub

The Standard Bezier format is an plain text format consisting of the following operators:

OperatorDescription
scstart of glyph outline
rmtrelative move (same as Type 1 rmoveto operator)
dtabsolute line/draw (same as Type 1 lineto operator)
ctabsolute curve (same as Type 1 curveto operator)
cpend of sub-path (same as Type 1 closepath operator)
edend of glyph outline (same as Type 1 endchar operator)
preflx1marks start of flex operator, expressed as Type 1 path operators
preflx2marks end of flex operator
flxflex operator
beginsubr sncmarks start of new block of hint values
endsubr enc\nnewcolorsmarks end of hint values
rbhorizontal stem hint
ryvertical stem hint
rmvertical counter hints
rvhorizontal counter hints

Notes

The preflx1/preflx2 sequence provides the same info as the flx sequence; the difference is that the preflx1/preflx2 sequence provides the argument values needed for building a Type 1 string while the flx sequence is simply the 6 rcurveto points. Both sequences are always provided.