Hello Nicholas
Im using an api, which uses some methods that call some unmanaged
functions.
Right now I´m home and I dont have the code here, but I will post it
tomorrow from work.
But for now: One of these methods returns a LOGFONT struct thing.
and this LOGFONT has all the information, like font name, size and so
on.
Then I try this
Font f=Font.FromLogFont(the logfont struct that my api method returns)
Then i get the error message saying that the font is not a true type and
therefor not supported and thereby I have no chance to pass the font to
the graphics.drawstring method.
And about the hardware-resident fonts. Yeah I actually believe that the
fonts are only availabe on the printer it self. Its a label printer.
Like when i choose it as defaultprinter and then open microsoft word,
I see the true type font marked as TT and I see some other fonts marked
with an o and then the printers own font marked with a printer
picture.Some of these fonts are Code 39, EAN 8 , EAN 13 and so.
My employer wants me to use these fonts for general purposes.
In vb6.0 its easy to get hold of these fonts by using printer.Fonts
but its not so straightforward in .net.
it think its impossible since the .netplatform does not support fonts
that are not true types.
Dear Nicholas I would be thankfull for your further reply
Thank you in advance
Amir
--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com