TAChart: Fix font height calculation in BGRA drawing back-end. Based on patch by "circular".

git-svn-id: trunk@40168 -
This commit is contained in:
ask 2013-02-04 01:57:55 +00:00
parent a3d9027f52
commit 1720aa9e61

View File

@ -74,7 +74,7 @@ type
implementation
uses
Graphics, TAGeometry;
BGRAText, Graphics, TAGeometry;
{ TBGRABitmapDrawer }
@ -243,7 +243,8 @@ end;
procedure TBGRABitmapDrawer.SetFont(AFont: TFPCustomFont);
begin
Canvas.Font.Name := AFont.Name;
Canvas.Font.Height := AFont.Size * 96 div 72;
Canvas.Font.Height :=
FontEmHeightSign * AFont.Size * ScreenInfo.PixelsPerInchY div 72;
Canvas.Font.Orientation := FGetFontOrientationFunc(AFont);
Canvas.Font.BGRAColor := BGRAColorOrMono(AFont.FPColor);
if AFont is TFont then