The following works fine in the editor, but the rotation is lost when printing; is there something that needs to be tweaked to get it to work?
Code
void __fastcall CLDDocument::OnEditorPaintWatermark(...) {
TFont* newFont(new TFont());
newFont->Assign(toCanvas->Font);
TLogFont newLogFont;
GetObject(newFont->Handle, sizeof(newLogFont), &newLogFont);
newLogFont.lfEscapement = 900;
newLogFont.lfOrientation = 900;
newFont->Handle = CreateFontIndirect(&newLogFont);
toCanvas->Font->Assign(newFont);
delete newFont;
toCanvas->TextOut(5, 5, "Hello");
}
Alles anzeigen
patrik.nyborg(a)genicore.se