Lines Matching refs:metrics

1030             // FreeType does no provide linear metrics for bitmap fonts.
1168 vector.x = fFace->glyph->metrics.vertBearingX - fFace->glyph->metrics.horiBearingX;
1169 vector.y = -fFace->glyph->metrics.vertBearingY - fFace->glyph->metrics.horiBearingY;
1259 vector.x = fFace->glyph->metrics.vertBearingX - fFace->glyph->metrics.horiBearingX;
1260 vector.y = -fFace->glyph->metrics.vertBearingY - fFace->glyph->metrics.horiBearingY;
1304 // If the font isn't scalable, scale the metrics from the non-scalable strike.
1306 if (!FT_IS_SCALABLE(fFace) && fScaleY && fFace->size->metrics.y_ppem) {
1309 SkIntToScalar(fFace->size->metrics.y_ppem)));
1373 vector.x = fFace->glyph->metrics.vertBearingX - fFace->glyph->metrics.horiBearingX;
1374 vector.y = -fFace->glyph->metrics.vertBearingY - fFace->glyph->metrics.horiBearingY;
1380 void SkScalerContext_FreeType::generateFontMetrics(SkPaint::FontMetrics* metrics) {
1381 if (NULL == metrics) {
1389 sk_bzero(metrics, sizeof(*metrics));
1421 // pull from format-specific metrics as needed
1436 metrics->fFlags |= SkPaint::FontMetrics::kUnderlineThinknessIsValid_Flag;
1437 metrics->fFlags |= SkPaint::FontMetrics::kUnderlinePositionIsValid_Flag;
1452 } else if (fStrikeIndex != -1) { // bitmap strike metrics
1453 SkScalar xppem = SkIntToScalar(face->size->metrics.x_ppem);
1454 SkScalar yppem = SkIntToScalar(face->size->metrics.y_ppem);
1455 ascent = -SkIntToScalar(face->size->metrics.ascender) / (yppem * 64.0f);
1456 descent = -SkIntToScalar(face->size->metrics.descender) / (yppem * 64.0f);
1457 leading = (SkIntToScalar(face->size->metrics.height) / (yppem * 64.0f))
1466 metrics->fFlags &= ~SkPaint::FontMetrics::kUnderlineThinknessIsValid_Flag;
1467 metrics->fFlags &= ~SkPaint::FontMetrics::kUnderlinePositionIsValid_Flag;
1472 // synthesize elements that were not provided by the os/2 table or format-specific metrics
1492 metrics->fTop = ymax * scale;
1493 metrics->fAscent = ascent * scale;
1494 metrics->fDescent = descent * scale;
1495 metrics->fBottom = ymin * scale;
1496 metrics->fLeading = leading * scale;
1497 metrics->fAvgCharWidth = avgCharWidth * scale;
1498 metrics->fXMin = xmin;
1499 metrics->fXMax = xmax;
1500 metrics->fXHeight = x_height;
1501 metrics->fCapHeight = cap_height;
1502 metrics->fUnderlineThickness = underlineThickness * scale;
1503 metrics->fUnderlinePosition = underlinePosition * scale;
1516 strength = FT_MulFix(face->units_per_EM, face->size->metrics.y_scale) / 24;