SkTypeface_win_dw.cpp remove unused fn
TBR=bungeman@google.com BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2226653003 Review-Url: https://codereview.chromium.org/2226653003
This commit is contained in:
parent
77f2fae49e
commit
eba373ef0a
@ -313,22 +313,6 @@ static void populate_glyph_to_unicode(IDWriteFontFace* fontFace,
|
||||
SkTDArray<SkUnichar>(glyphToUni, maxGlyph + 1).swap(*glyphToUnicode);
|
||||
}
|
||||
|
||||
static bool getWidthAdvance(IDWriteFontFace* fontFace, int gId, int16_t* advance) {
|
||||
SkASSERT(advance);
|
||||
|
||||
UINT16 glyphId = gId;
|
||||
DWRITE_GLYPH_METRICS gm;
|
||||
HRESULT hr = fontFace->GetDesignGlyphMetrics(&glyphId, 1, &gm);
|
||||
|
||||
if (FAILED(hr)) {
|
||||
*advance = 0;
|
||||
return false;
|
||||
}
|
||||
|
||||
*advance = gm.advanceWidth;
|
||||
return true;
|
||||
}
|
||||
|
||||
SkAdvancedTypefaceMetrics* DWriteFontTypeface::onGetAdvancedTypefaceMetrics(
|
||||
PerGlyphInfo perGlyphInfo,
|
||||
const uint32_t* glyphIDs,
|
||||
|
Loading…
Reference in New Issue
Block a user