mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 20:40:56 +02:00
LCL-GTK2: Support fractions of degrees in font orientation. Issue #35437.
git-svn-id: trunk@61049 -
This commit is contained in:
parent
e149d43e6b
commit
bf45896b72
@ -1339,7 +1339,7 @@ begin
|
||||
NewMatrix.x0 := 0.0;
|
||||
NewMatrix.y0 := 0.0;
|
||||
pango_matrix_translate(@NewMatrix, X, Y);
|
||||
pango_matrix_rotate(@NewMatrix, AFont^.LogFont.lfEscapement div 10);
|
||||
pango_matrix_rotate(@NewMatrix, AFont^.LogFont.lfEscapement / 10);
|
||||
|
||||
pango_context_set_matrix(WidgetCont, @NewMatrix);
|
||||
pango_layout_context_changed(AFont^.GDIFontObject);
|
||||
|
@ -2530,16 +2530,16 @@ var
|
||||
var TextLeft,TextTop: Integer);
|
||||
var
|
||||
OffsX, OffsY: integer;
|
||||
Angle: Integer;
|
||||
Angle: Double;
|
||||
Size: TSize;
|
||||
R: TRect;
|
||||
begin
|
||||
R := SavedRect;
|
||||
OffsX := R.Right - R.Left;
|
||||
OffsY := R.Bottom - R.Top;
|
||||
Size.cX := OffsX;
|
||||
Size.cx := OffsX;
|
||||
Size.cy := OffsY;
|
||||
Angle := AFontAngle div 10;
|
||||
Angle := AFontAngle / 10;
|
||||
if Angle < 0 then
|
||||
Angle := 360 + Angle;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user