471,603 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,603 software developers and data experts.

non true type

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
2 2432
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
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.

Similar topics

18 posts views Thread by Daniel Klein | last post: by
46 posts views Thread by Scott Chapman | last post: by
16 posts views Thread by Timothy Fitz | last post: by
14 posts views Thread by Walter Dnes (delete the 'z' to get my real address | last post: by
48 posts views Thread by Skybuck Flying | last post: by
15 posts views Thread by Ben Hinkle | last post: by
30 posts views Thread by Jason | last post: by
90 posts views Thread by John Salerno | last post: by
40 posts views Thread by nufuhsus | last post: by
reply views Thread by MichaelMortimer | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.