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:
halcanary 2016-08-08 11:09:33 -07:00 committed by Commit bot
parent 77f2fae49e
commit eba373ef0a

View File

@ -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,