Home | History | Annotate | Download | only in ports

Lines Matching refs:gm

177     GLYPHMETRICS gm;
180 if (GetGlyphOutlineW(hdc, mid, GGO_METRICS | GGO_GLYPH_INDEX, &gm, 0,
912 GLYPHMETRICS gm;
913 sk_bzero(&gm, sizeof(gm));
915 DWORD status = GetGlyphOutlineW(fDDC, glyphId, GGO_METRICS | GGO_GLYPH_INDEX, &gm, 0, NULL, &fMat22);
918 status = GetGlyphOutlineW(fDDC, glyphId, GGO_METRICS | GGO_GLYPH_INDEX, &gm, 0, NULL, &fMat22);
929 if (1 == gm.gmBlackBoxX && 1 == gm.gmBlackBoxY) {
931 gm, 0, NULL, &fMat22);
935 glyph->fTop = SkToS16(-gm.gmptGlyphOrigin.y);
936 glyph->fLeft = SkToS16(gm.gmptGlyphOrigin.x);
945 glyph->fWidth = gm.gmBlackBoxX + 4;
946 glyph->fHeight = gm.gmBlackBoxY + 4;
950 glyph->fAdvanceX = SkIntToFixed(gm.gmCellIncX);
951 glyph->fAdvanceY = SkIntToFixed(gm.gmCellIncY);
956 sk_bzero(&gm, sizeof(gm));
957 status = GetGlyphOutlineW(fDDC, glyphId, GGO_METRICS | GGO_GLYPH_INDEX, &gm, 0, NULL, &fHighResMat22);
960 fHiResMatrix.mapXY(SkIntToScalar(gm.gmCellIncX), SkIntToScalar(gm.gmCellIncY), &advance);
965 status = GetGlyphOutlineW(fDDC, glyphId, GGO_METRICS | GGO_GLYPH_INDEX, &gm, 0, NULL, &fGsA);
968 fG_inv.mapXY(SkIntToScalar(gm.gmCellIncX), SkIntToScalar(gm.gmCellIncY), &advance);
1051 GLYPHMETRICS gm;
1052 sk_bzero(&gm, sizeof(gm));
1053 DWORD len = GetGlyphOutlineW(fDDC, 'x', GGO_METRICS, &gm, 0, 0, &gMat2Identity);
1054 if (len != GDI_ERROR && gm.gmBlackBoxY > 0) {
1055 my->fXHeight = SkIntToScalar(gm.gmBlackBoxY);
1679 GLYPHMETRICS gm;
1681 DWORD total_size = GetGlyphOutlineW(fDDC, glyph.fID, flags, &gm, BUFFERSIZE, glyphbuf->get(), &fMat22);
1688 total_size = GetGlyphOutlineW(fDDC, glyph.fID, flags, &gm, 0, NULL, &fMat22);
1691 total_size = GetGlyphOutlineW(fDDC, glyph.fID, flags, &gm, 0, NULL, &fMat22);
1700 DWORD ret = GetGlyphOutlineW(fDDC, glyph.fID, flags, &gm, total_size, glyphbuf->get(), &fMat22);
1703 ret = GetGlyphOutlineW(fDDC, glyph.fID, flags, &gm, total_size, glyphbuf->get(), &fMat22);
1808 GLYPHMETRICS gm;
1809 if (GDI_ERROR == GetGlyphOutline(hdc, gId, flags, &gm, 0, NULL, &mat2)) {
1813 *advance = gm.gmCellIncX;