loadGlyphGlyph -> loadGlyphSlot

This commit is contained in:
Tomáš Malý 2018-02-28 09:48:16 +01:00
parent 45e558227f
commit 08033e601e
2 changed files with 4 additions and 4 deletions

View File

@ -130,10 +130,10 @@ bool loadGlyph(Shape &output, FontHandle *font, int unicode, double *advance) {
if (error)
return false;
return loadGlyphGlyph(output, font->face->glyph, advance);
return loadGlyphSlot(output, font->face->glyph, advance);
}
bool loadGlyphGlyph(Shape &output, FT_GlyphSlot glyph, double *advance) {
bool loadGlyphSlot(Shape &output, FT_GlyphSlot glyph, double *advance) {
if (!glyph)
return false;
output.contours.clear();

View File

@ -25,8 +25,8 @@ bool getFontScale(double &output, FontHandle *font);
bool getFontWhitespaceWidth(double &spaceAdvance, double &tabAdvance, FontHandle *font);
/// Loads the shape prototype of a glyph from font file
bool loadGlyph(Shape &output, FontHandle *font, int unicode, double *advance = NULL);
/// Loads the spahe prototype of a glyph directly from FT glyph slot
bool loadGlyphGlyph(Shape &output, FT_GlyphSlot glyph, double *advance = NULL);
/// Loads the shape prototype of a glyph directly from FT glyph slot
bool loadGlyphSlot(Shape &output, FT_GlyphSlot glyph, double *advance = NULL);
/// Returns the kerning distance adjustment between two specific glyphs.
bool getKerning(double &output, FontHandle *font, int unicode1, int unicode2);