Bugs item #1861202, was opened at 2007-12-31 02:42
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=462816&aid=1861202&group_id=51305
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Ben (benmoores)
Assigned to: Nobody/Anonymous (nobody)
Summary: [wxPdfDoc] - Font change ignored in some cases
Initial Comment:
Hi, I've found a case where font changes aren't propagated to the pdf document.
If I do:
setfont(fontA)
StartTransform
setfont(fontB)
writeText("text1")
EndTransform
StartTransform
setfont(fontB)
writeText("text2")
EndTransform
"text1" gets rendered using fontB, but "text2" gets rendered using fontA.
This happens because m_fontFamily doesn't get rewound to the 'fontA' when
EndTransform is called. Then in pdfkernel.cpp in SelectFont the '// Test if
font is already selected' test thinks the correct font is already set, and
doesn't set it again.
My quick hack is just to remove that test, and that gets it going good enough
for me.
Thanks
Ben
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=462816&aid=1861202&group_id=51305
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
wxCode-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxcode-users