Searched refs:fontMetrics (Results 1 – 2 of 2) sorted by relevance
186 SizeMetrics fontMetrics = face.getSize().getMetrics(); in scaleForPixelHeight() local187 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() local198 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() local227 int baseline = FreeType.toInt(fontMetrics.getAscender()); in generateGlyphAndBitmap()305 SizeMetrics fontMetrics = face.getSize().getMetrics(); in generateData() local[all …]
809 SkAutoTUnref<const SkAdvancedTypefaceMetrics> fontMetrics; in GetFontResource() local812 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() local1128 setFontInfo(fontMetrics.get()); in populate()[all …]