By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,606 Members | 1,661 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,606 IT Pros & Developers. It's quick & easy.

non true type

P: n/a
hello everyone

I need to print with the e.graphics.drawstring method.
And it takes among other a font object as argument.
But I want to use a font which is not a true type. Therefore im stuck
right now.
How do I print using a font that is not a true type font and actually
is hardware resident

Thank you in advance
Amir

Jan 3 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Amir,

How would you do it normally? If you have a way to get a handle to the
font programatically (you must, otherwise, the abstracted graphics routines
would have NO clue how to render this) then you can pass it anywhere you
want.

Can you get a handle to it? Is there an API that does this?

Also, how is it hardware resident? Are you saying that the font is on
the printer itself? That makes little sense to me.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"a_man" <am*************@yahoo.dk> wrote in message
news:11*********************@g49g2000cwa.googlegro ups.com...
hello everyone

I need to print with the e.graphics.drawstring method.
And it takes among other a font object as argument.
But I want to use a font which is not a true type. Therefore im stuck
right now.
How do I print using a font that is not a true type font and actually
is hardware resident

Thank you in advance
Amir

Jan 3 '06 #2

P: n/a
Hello Nicholas

Im using an api, which uses some methods that call some unmanaged
functions.
Right now Im 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
Jan 3 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.