Summary: | bitmap font is not scaled by cairo_scale() | ||
---|---|---|---|
Product: | cairo | Reporter: | Ginn Chen <ginn.chen> |
Component: | freetype font backend | Assignee: | David Turner <david> |
Status: | RESOLVED FIXED | QA Contact: | cairo-bugs mailing list <cairo-bugs> |
Severity: | normal | ||
Priority: | medium | CC: | ajohnson, freedesktop |
Version: | 1.9.3 | ||
Hardware: | All | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
cairo_bitmap_font_scale.c
try.patch the buggy result result after applying try.patch |
Description
Ginn Chen
2009-08-27 02:23:31 UTC
Created attachment 28945 [details] [review] try.patch Created attachment 28946 [details]
the buggy result
Created attachment 28947 [details]
result after applying try.patch
> For PS, if we use "scale" operator inside "/Glyphs", we can get a better > result. > (suggested by Adrian Johnson in > https://bugzilla.mozilla.org/show_bug.cgi?id=448186#c7) > But I don't know how should I pass the "CTM" through "scaled_glyph". User fonts is the feature that will give you better control of bitmap fonts in PS/PDF output: http://www.cairographics.org/manual/cairo-user-font.html An example of creating bitmap fonts using user fonts is in cairo/test/user-font-mask.c This issue (how to scale bitmaps) should be brought up on cairo list for discussion first. Thanks. This is now being discussed: http://lists.freedesktop.org/archives/fontconfig/2012-December/004498.html In fact, this recent commit of mind fixed your test case: http://cgit.freedesktop.org/cairo/commit/?id=b94a519aad3d5b50aa6de47ee16ee6a099de9791 The fontconfig part is still ongoing, but that's not in the scope of this bug anymore. That said, there seems to be issues with vertical text and bitmap fonts, so someone may want to investigate. This should be fixed now. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.