Further cleanup of point types
This commit is contained in:
parent
82cea0e06d
commit
e58a6965db
14 changed files with 231 additions and 252 deletions
|
@ -1,4 +1,5 @@
|
|||
const { Ot } = require("ot-builder");
|
||||
const Point = require("../../support/point");
|
||||
|
||||
class NamedGlyphStore {
|
||||
constructor() {
|
||||
|
@ -48,7 +49,9 @@ class NamedGlyphStore {
|
|||
Ot.Glyph.Point.create(
|
||||
z.x,
|
||||
z.y,
|
||||
z.on ? Ot.Glyph.PointType.Corner : Ot.Glyph.PointType.Quad
|
||||
z.type === Point.Type.Quadratic
|
||||
? Ot.Glyph.PointType.Quad
|
||||
: Ot.Glyph.PointType.Corner
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue