[cairo-bugs] [Bug 50688] New: Freetype (TTF) font string truncated
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Jun 4 10:30:49 PDT 2012
https://bugs.freedesktop.org/show_bug.cgi?id=50688
Bug #: 50688
Summary: Freetype (TTF) font string truncated
Classification: Unclassified
Product: cairo
Version: 1.12.2
Platform: x86 (IA32)
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: freetype font backend
AssignedTo: david at freetype.org
ReportedBy: angelo70 at gmail.com
QAContact: cairo-bugs at cairographics.org
Created attachment 62524
--> https://bugs.freedesktop.org/attachment.cgi?id=62524
all i have
Hi all,
from when i apt-get update to libcairo 1.12.2.1 i started to see some pixels,
about 5, of the displayed strings truncated.
Same issue is visible with a particular TTF font (attached), also using
gnome-font-viewer.
When i move back to libcairo 1.10.2.7, issue disappear.
What i do in my code (note issue is also with gnome-font-viewer) :
FT_Library ftl;
FT_Init_FreeType(&ftl);
FT_Face ftf;
string fontfile = Config::get().s.dir_skin + fontfilename;
FT_New_Face( ftl, fontfile.c_str(), 0, &ftf );
....
_cf = cairo_ft_font_face_create_for_ft_face(ftf, 0);
....
void MyClass::Draw ()
{
cairo_save(cr);
cairo_rectangle ( cr, x, y, w, h );
cairo_clip(cr);
cairo_rectangle ( cr, x, y, w, h );
cairo_move_to (cr, x);
cairo_show_text (cr,_text.c_str());
cairo_reset_clip(cr);
cairo_restore(cr);
}
I add as more attachment i can about the issue.
NOTE: on windows same font is still displayed correctly.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
More information about the cairo-bugs
mailing list