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:
@@ -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 ||
|
||||||
|
|||||||
Reference in New Issue
Block a user