mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 09:08:16 +02:00
dwrite: Fix incorrect rendering of some SVG fonts
SVG fonts are returning DWRITE_GLYPH_IMAGE_FORMATS_NONE as well as DWRITE_GLYPH_IMAGE_FORMATS_SVG in GetCurrentRun() resulting in the outline glyph and color glyph both rendered to the same glyph image.
This commit is contained in:
parent
455a4cca54
commit
7c037e5254
1 changed files with 2 additions and 1 deletions
|
|
@ -1035,7 +1035,6 @@ _cairo_dwrite_scaled_font_init_glyph_color_surface(cairo_dwrite_scaled_font_t *s
|
|||
case DWRITE_GLYPH_IMAGE_FORMATS_TRUETYPE:
|
||||
case DWRITE_GLYPH_IMAGE_FORMATS_CFF:
|
||||
case DWRITE_GLYPH_IMAGE_FORMATS_COLR:
|
||||
default:
|
||||
/* Outline glyphs */
|
||||
if (color_run->paletteIndex == 0xFFFF) {
|
||||
D2D1_COLOR_F color = foreground_color_brush->GetColor();
|
||||
|
|
@ -1050,6 +1049,8 @@ _cairo_dwrite_scaled_font_init_glyph_color_surface(cairo_dwrite_scaled_font_t *s
|
|||
color_run->glyphRunDescription,
|
||||
color_brush,
|
||||
DWRITE_MEASURING_MODE_NATURAL);
|
||||
case DWRITE_GLYPH_IMAGE_FORMATS_NONE:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue