mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-16 03:10:23 +01:00
[ATSUI] Support disabling antialiased text
This commit is contained in:
parent
4c95e2b7bf
commit
bf1c2ef1e2
1 changed files with 4 additions and 0 deletions
|
|
@ -656,6 +656,10 @@ _cairo_atsui_font_old_show_glyphs (void *abstract_font,
|
|||
|
||||
CGContextSetFont(drawingContext, cgFont);
|
||||
|
||||
if (font->base.options.antialias == CAIRO_ANTIALIAS_NONE) {
|
||||
CGContextSetShouldAntialias (drawingContext, false);
|
||||
}
|
||||
|
||||
textTransform = CGAffineTransformMakeWithCairoFontScale(&font->base.scale);
|
||||
textTransform = CGAffineTransformScale(textTransform, 1.0f, -1.0f);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue