Text looks horrible
Posted: 2011-12-22T12:33:24-07:00
I am using standard Ubuntu fonts:
Ghostscript helvetica
/usr/share/fonts/type1/gsfonts/n019003l.pfb
TrueType courier
/usr/share/fonts/truetype/msttcorefonts/Courier_New_Bold.ttf
/usr/share/fonts/truetype/msttcorefonts/Courier_New.ttf
All come out way too thick. If I use the exact same font in GD, it looks fine. When after I create the image:
and then when I want to draw the string (I do draw other stuff before the string)
The text is totally blurry and un-readable. I know it isn't the rotation code, as I can take that out and it is still unreadable.
If I crank my font size up to 30, I see an outline of the text in the color I wanted (black) and an inner-line in a different color (gray). Totally not what I expected. All I want is that inner-line of the font and at a 10 point size.
Any thoughts? This has me stumped.
- brian
(I would include screen shots if I knew out to upload them here
Ghostscript helvetica
/usr/share/fonts/type1/gsfonts/n019003l.pfb
TrueType courier
/usr/share/fonts/truetype/msttcorefonts/Courier_New_Bold.ttf
/usr/share/fonts/truetype/msttcorefonts/Courier_New.ttf
All come out way too thick. If I use the exact same font in GD, it looks fine. When after I create the image:
Code: Select all
_image->font("/usr/share/fonts/truetype/msttcorefonts/Courier_New_Bold.ttf");
_image->fontPointsize(10);
Code: Select all
_image->transformRotation(geo::radiansToDegrees(angle));
// Rotate the points to match the rotation angle
f.rotate(angle);
t.rotate(angle);
// Draw the text
_image->draw(Magick::DrawableText(f.x(), t.y(), str));
// Undo the rotation
_image->transformReset();
If I crank my font size up to 30, I see an outline of the text in the color I wanted (black) and an inner-line in a different color (gray). Totally not what I expected. All I want is that inner-line of the font and at a 10 point size.
Any thoughts? This has me stumped.
- brian
(I would include screen shots if I knew out to upload them here