mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 16:08:20 +02:00
[twin] Don't hint pen if hint-style is SLIGHT
This commit is contained in:
parent
0c7eaf6e0a
commit
a5f4a97aa4
1 changed files with 2 additions and 2 deletions
|
|
@ -317,7 +317,7 @@ _twin_compute_snap (cairo_t *cr,
|
|||
const signed char *snap;
|
||||
double x, y;
|
||||
|
||||
info->snap = scaled_font->options.hint_style != CAIRO_HINT_STYLE_NONE;
|
||||
info->snap = scaled_font->options.hint_style > CAIRO_HINT_STYLE_NONE;
|
||||
if (!info->snap)
|
||||
return;
|
||||
|
||||
|
|
@ -361,7 +361,7 @@ _twin_compute_pen (cairo_t *cr,
|
|||
double scale, inv;
|
||||
cairo_bool_t hint;
|
||||
|
||||
hint = scaled_font->options.hint_style != CAIRO_HINT_STYLE_NONE;
|
||||
hint = scaled_font->options.hint_style > CAIRO_HINT_STYLE_SLIGHT;
|
||||
if (!hint) {
|
||||
*penx = *peny = width;
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue