1. Printer Fonts
- Posted by AndyDrummond Feb 19, 2009
- 990 views
I use Win32Lib to print documents in Windows XP SP3. I can select the usual font variants like underline & bold, but how can I select "outline"? Or the other variations like superscript & subscript - though those can be done by changing font size & text position. Outline can't. Any information?
Andy Drummond
2. Re: Printer Fonts
- Posted by ghaberek (admin) Feb 19, 2009
- 985 views
You'd probably have to manually draw a box around the text as you draw it on the Printer. If you use DrawText, you can take the rectangle it uses and pass it to drawRectangle. I'm just thinking out loud though, I haven't actually tested this...
-Greg
3. Re: Printer Fonts
- Posted by DanM Feb 19, 2009
- 997 views
I use Win32Lib to print documents in Windows XP SP3. I can select the usual font variants like underline & bold, but how can I select "outline"? Or the other variations like superscript & subscript - though those can be done by changing font size & text position. Outline can't. Any information?
Andy Drummond
If you mean text that is "hollow", then you'd probably have to download a FONT of that type so you could select it to use.
Dan
4. Re: Printer Fonts
- Posted by DerekParnell (admin) Feb 19, 2009
- 1092 views
I use Win32Lib to print documents in Windows XP SP3. I can select the usual font variants like underline & bold, but how can I select "outline"? Or the other variations like superscript & subscript - though those can be done by changing font size & text position. Outline can't. Any information?
Had a quick look at the Windows SDK and it seems that you need to use the GetGlyphOutline() API to get a bitmap of the font character's outline. Presumably you can then print this bitmap.
I suggest you consult the Windows websitre for more details.
5. Re: Printer Fonts
- Posted by AndyDrummond Feb 20, 2009
- 991 views
Well, thank you Derek, but I suspect that if it is not a straightforward task then I won't do it. Some things are easy, some clearly are difficult. unless the requirement becomes a *must* then I shall retreat and just look for a ready-made font.
Andy