Home
last modified time | relevance | path

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

/external/skia/src/ports/
DSkTypeface_win_dw.cpp343 DWRITE_FONT_METRICS dwfm; in onGetAdvancedTypefaceMetrics() local
344 fDWriteFontFace->GetMetrics(&dwfm); in onGetAdvancedTypefaceMetrics()
347 info->fEmSize = dwfm.designUnitsPerEm; in onGetAdvancedTypefaceMetrics()
373 info->fAscent = dwfm.ascent; in onGetAdvancedTypefaceMetrics()
374 info->fDescent = dwfm.descent; in onGetAdvancedTypefaceMetrics()
375 info->fCapHeight = dwfm.capHeight; in onGetAdvancedTypefaceMetrics()
384 info->fAscent = dwfm.ascent; in onGetAdvancedTypefaceMetrics()
385 info->fDescent = dwfm.descent; in onGetAdvancedTypefaceMetrics()
386 info->fCapHeight = dwfm.capHeight; in onGetAdvancedTypefaceMetrics()
414 info->fAscent = SkToS16(dwfm.ascent); in onGetAdvancedTypefaceMetrics()
[all …]
DSkScalerContext_win_dw.cpp370 DWRITE_FONT_METRICS dwfm; in generateAdvance() local
373 fTypeface->fDWriteFontFace->GetMetrics(&dwfm); in generateAdvance()
377 SkIntToScalar(dwfm.designUnitsPerEm)); in generateAdvance()
500 DWRITE_FONT_METRICS dwfm; in generateFontMetrics() local
508 &dwfm); in generateFontMetrics()
510 fTypeface->fDWriteFontFace->GetMetrics(&dwfm); in generateFontMetrics()
513 SkScalar upem = SkIntToScalar(dwfm.designUnitsPerEm); in generateFontMetrics()
515 metrics->fAscent = -fTextSizeRender * SkIntToScalar(dwfm.ascent) / upem; in generateFontMetrics()
516 metrics->fDescent = fTextSizeRender * SkIntToScalar(dwfm.descent) / upem; in generateFontMetrics()
517 metrics->fLeading = fTextSizeRender * SkIntToScalar(dwfm.lineGap) / upem; in generateFontMetrics()
[all …]