@@ -34,21 +34,6 @@ proc scale(x, y: float32): Matrix3 =
3434proc inverse (m: Matrix3 ): Matrix3 =
3535 cast [Matrix3 ](inverse (cast [Mat3 ](m)))
3636
37- proc hasGlyph (typeface: Typeface , rune: int32 ): bool {.raises : [].} =
38- typeface.hasGlyph (Rune (rune))
39-
40- proc getGlyphPath (typeface: Typeface , rune: int32 ): Path {.raises : [].} =
41- try :
42- result = typeface.getGlyphPath (Rune (rune))
43- except :
44- lastError = currentExceptionAsPixieError ()
45-
46- proc getAdvance (typeface: Typeface , rune: int32 ): float32 {.raises : [].} =
47- typeface.getAdvance (Rune (rune))
48-
49- proc getKerningAdjustment (typeface: Typeface , left, right: int32 ): float32 {.raises : [].} =
50- typeface.getKerningAdjustment (Rune (left), Rune (right))
51-
5237proc parseColor (s: string ): Color {.raises : [PixieError ]} =
5338 try :
5439 result = parseHtmlColor (s)
@@ -208,10 +193,10 @@ exportRefObject Typeface:
208193 descent
209194 lineGap
210195 lineHeight
211- hasGlyph ( Typeface , int32 )
212- getGlyphPath ( Typeface , int32 )
213- getAdvance ( Typeface , int32 )
214- getKerningAdjustment ( Typeface , int32 , int32 )
196+ hasGlyph
197+ getGlyphPath
198+ getAdvance
199+ getKerningAdjustment
215200 newFont
216201
217202exportRefObject Font :
0 commit comments