mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 23:19:12 +02:00
fixed ExtTextOut getting TextHeight
git-svn-id: trunk@9111 -
This commit is contained in:
parent
c2d94e53a0
commit
770fa8ffb2
@ -392,13 +392,9 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TXMLObjectWriter.WriteWideString(const Value: WideString);
|
procedure TXMLObjectWriter.WriteWideString(const Value: WideString);
|
||||||
var
|
// save widestrings as utf8
|
||||||
s: string;
|
|
||||||
begin
|
begin
|
||||||
SetLength(s,length(Value)*2);
|
GetPropertyElement('widestring')['value'] := System.UTF8Encode(Value);
|
||||||
if s<>'' then
|
|
||||||
System.Move(Value[1],s[1],length(s));
|
|
||||||
GetPropertyElement('widestring')['value'] := s;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@ type
|
|||||||
property MyString: string read FMyString write FMyString;
|
property MyString: string read FMyString write FMyString;
|
||||||
property MyEnum: TMyEnum read FMyEnum write FMyEnum;
|
property MyEnum: TMyEnum read FMyEnum write FMyEnum;
|
||||||
property MySet: TMySet read FMySet write FMySet;
|
property MySet: TMySet read FMySet write FMySet;
|
||||||
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
@ -3844,7 +3844,7 @@ begin
|
|||||||
if UseFont<>nil then begin
|
if UseFont<>nil then begin
|
||||||
LineLen := FindChar(#10,Str,Count);
|
LineLen := FindChar(#10,Str,Count);
|
||||||
UpdateDCTextMetric(TDeviceContext(DC));
|
UpdateDCTextMetric(TDeviceContext(DC));
|
||||||
LineHeight:=DCTextMetric.TextMetric.tmHeight;
|
LineHeight:=GetTextHeight(DCTextMetric);
|
||||||
if Buffered then begin
|
if Buffered then begin
|
||||||
TxtPt.X := 0;
|
TxtPt.X := 0;
|
||||||
TxtPt.Y := LineHeight;
|
TxtPt.Y := LineHeight;
|
||||||
|
Loading…
Reference in New Issue
Block a user