mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
*PdfDraw: Fixed issue with negative font height
git-svn-id: svn://ultimatepp.org/upp/trunk@5945 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
c364130d59
commit
900f9f6b42
1 changed files with 5 additions and 1 deletions
|
|
@ -280,9 +280,13 @@ enum { FONTHEIGHT_TTF = -9999 };
|
|||
void PdfDraw::DrawTextOp(int x, int y, int angle, const wchar *s, Font fnt,
|
||||
Color ink, int n, const int *dx)
|
||||
{
|
||||
LLOG("DrawTextOp " << x << ", " << y << "angle: " << angle << ", text: " << s << ", font " << fnt);
|
||||
if(!n) return;
|
||||
if(fnt.GetHeight() == 0)
|
||||
int h = fnt.GetHeight();
|
||||
if(h == 0)
|
||||
fnt.Height(100);
|
||||
if(h < 0)
|
||||
fnt.Height(-h);
|
||||
Font ff = fnt;
|
||||
int fh = fnt.GetHeight();
|
||||
OutlineInfo of = GetOutlineInfo(fnt);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue