now uses font shear in AGGTextRenderer

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14085 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2005-08-29 23:24:52 +00:00
parent 1733a44231
commit f9d38575a1
@@ -82,8 +82,8 @@ AGGTextRenderer::SetFont(const ServerFont &font)
bool success = true; bool success = true;
// construct an embedded transformation (rotate & shear) // construct an embedded transformation (rotate & shear)
Transformable transform; Transformable transform;
// TODO: convert BFont::Shear(), which is in degrees 45°...135° to whatever AGG is using // TODO: check if Transformable::ShearBy should accept degrees instead of radians
// transform.ShearBy(B_ORIGIN, fFont.Shear(), 0.0); transform.ShearBy(B_ORIGIN, (90.0 - font.Shear()) * PI / 180.0, 0.0);
transform.RotateBy(B_ORIGIN, -font.Rotation()); transform.RotateBy(B_ORIGIN, -font.Rotation());
bool load = font.GetFamilyAndStyle() != fLastFamilyAndStyle || bool load = font.GetFamilyAndStyle() != fLastFamilyAndStyle ||