mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-06 09:18:11 +02:00
[user-font] Round glyph origin position
This commit is contained in:
parent
17f21ea307
commit
f1a0e9df0e
1 changed files with 2 additions and 2 deletions
|
|
@ -153,8 +153,8 @@ _cairo_user_scaled_glyph_init (void *abstract_font,
|
|||
surface = cairo_image_surface_create (CAIRO_FORMAT_A8, width, height);
|
||||
|
||||
cairo_surface_set_device_offset (surface,
|
||||
-scaled_glyph->metrics.x_bearing,
|
||||
-scaled_glyph->metrics.y_bearing);
|
||||
_cairo_lround (-scaled_glyph->metrics.x_bearing),
|
||||
_cairo_lround (-scaled_glyph->metrics.y_bearing));
|
||||
status = _cairo_meta_surface_replay (meta_surface, surface);
|
||||
|
||||
if (status) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue