This commit is contained in:
Vincent Wei
2019-01-13 13:17:23 +08:00
parent bb187f1ee3
commit b658413961
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ to
<weight><slant><flipping><other><decoration><rendering>
Obviously, `<underline>` and `<struckout>` are merged to `<decoration>`
in order to keep the styel string is still 6-character long.
in order to keep the style string is still 6-character long.
Now, if you want to use the rendering style SUPIXEL for a TTF font,
please define the font name in the following way:
+6 -6
View File
@@ -4572,7 +4572,7 @@ int _gdi_draw_one_glyph (PDC pdc, Glyph32 glyph_value, BOOL direction,
fg_gal_rc.w = bbox.w + italic;
fg_gal_rc.h = bbox.h;
#if 0 // VincentWei: use FS_RENDER_MASK instead (3.4.0)
#if 0 // VincentWei: use FS_DECORATE_XXXX instead (3.4.0)
if ( pdc->bkmode != BM_TRANSPARENT
|| logfont->style & FS_UNDERLINE_LINE
|| logfont->style & FS_STRUCKOUT_LINE )
@@ -4616,11 +4616,11 @@ int _gdi_draw_one_glyph (PDC pdc, Glyph32 glyph_value, BOOL direction,
}
}
#else
if (glyph_bmptype == DEVFONTGLYPHTYPE_MONOBMP
&& (logfont->style & FS_RENDER_MASK) == FS_RENDER_OUTLINE) {
fg_gal_rc.x--; fg_gal_rc.y--;
fg_gal_rc.w += 2; fg_gal_rc.h += 2;
}
if (glyph_bmptype == DEVFONTGLYPHTYPE_MONOBMP
&& (logfont->style & FS_RENDER_MASK) == FS_RENDER_OUTLINE) {
bg_gal_rc.x--; bg_gal_rc.y--;
bg_gal_rc.w += 2; bg_gal_rc.h += 2;
}
#endif
make_back_rect(&rc_back, area, &bg_gal_rc, flag);