Home
last modified time | relevance | path

Searched refs:fontMetrics (Results 1 – 2 of 2) sorted by relevance

/external/libgdx/extensions/gdx-freetype/src/com/badlogic/gdx/graphics/g2d/freetype/
DFreeTypeFontGenerator.java186 SizeMetrics fontMetrics = face.getSize().getMetrics(); in scaleForPixelHeight() local
187 int ascent = FreeType.toInt(fontMetrics.getAscender()); in scaleForPixelHeight()
188 int descent = FreeType.toInt(fontMetrics.getDescender()); in scaleForPixelHeight()
197 SizeMetrics fontMetrics = face.getSize().getMetrics(); in scaleForPixelWidth() local
198 int advance = FreeType.toInt(fontMetrics.getMaxAdvance()); in scaleForPixelWidth()
199 int ascent = FreeType.toInt(fontMetrics.getAscender()); in scaleForPixelWidth()
200 int descent = FreeType.toInt(fontMetrics.getDescender()); in scaleForPixelWidth()
226 SizeMetrics fontMetrics = face.getSize().getMetrics(); in generateGlyphAndBitmap() local
227 int baseline = FreeType.toInt(fontMetrics.getAscender()); in generateGlyphAndBitmap()
305 SizeMetrics fontMetrics = face.getSize().getMetrics(); in generateData() local
[all …]
/external/skia/src/pdf/
DSkPDFFont.cpp809 SkAutoTUnref<const SkAdvancedTypefaceMetrics> fontMetrics; in GetFontResource() local
812 fontMetrics.reset(SkSafeRef(relatedFont->fontInfo())); in GetFontResource()
819 fontMetrics.get() ? fontMetrics.get()->fType : in GetFontResource()
835 fontMetrics.reset( in GetFontResource()
838 if (fontMetrics.get() && in GetFontResource()
839 fontMetrics->fType != SkAdvancedTypefaceMetrics::kTrueType_Font) { in GetFontResource()
843 fontMetrics.reset( in GetFontResource()
849 SkPDFFont* font = SkPDFFont::Create(canon, fontMetrics.get(), typeface, in GetFontResource()
1126 SkAutoTUnref<const SkAdvancedTypefaceMetrics> fontMetrics( in populate() local
1128 setFontInfo(fontMetrics.get()); in populate()
[all …]