473,397 Members | 1,961 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 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 2503
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 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
Jan 3 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Daniel Klein | last post by:
In Python 2.2 I use to have true = (1 == 1) false = not true This was at the recommendation of someone on this list some time ago. The reason (if I remember correctly) was that setting ...
46
by: Scott Chapman | last post by:
There seems to be an inconsistency here: Python 2.3.2 (#1, Oct 3 2003, 19:04:58) on linux2 >>> 1 == True True >>> 3 == True False >>> if 1: print "true" ....
16
by: Timothy Fitz | last post by:
http://www.python.org/moin/PythonSpeed ] "Starting with Py2.3, the interpreter optimizes 'while 1' to just a single jump. In contrast "while True" takes several more steps. While the latter is...
14
by: Walter Dnes (delete the 'z' to get my real address | last post by:
I took a C course some time ago, but I'm only now beginning to use it, for a personal pet project. My current stumbling-block is finding an efficient way to find a match between the beginning of a...
48
by: Skybuck Flying | last post by:
Hi, I came across this C code which I wanted to understand etc it looked like this: if (-1) etc It made me wonder what the result would be... true or false ? In C and Delphi
33
by: Ruffin Bailey | last post by:
I coulda sworn I was given an explanation during an AppDev class years ago for VB6, but don't recall the answer. Why is it that -1 is True in Visual Basic (and now VB.NET)? Bit flags seem like...
15
by: Ben Hinkle | last post by:
I'm curious, what was the rationale for making a builtin type _Bool but then having #define true 1 #define false 0 in stdbool.h? That seems very odd that true and false don't have type _Bool. In...
30
by: Jason | last post by:
I am fairly new to ASP--I have been using it about 2 months. I did these tests (below), and it doesn't make sense to me. False is equal to 0, and that's fine. True should be equal to 1, but it's...
90
by: John Salerno | last post by:
I'm a little confused. Why doesn't s evaluate to True in the first part, but it does in the second? Is the first statement something different? False print 'hi' hi Thanks.
40
by: nufuhsus | last post by:
Hello all, First let me appologise if this has been answered but I could not find an acurate answer to this interesting problem. If the following is true: C:\Python25\rg.py>python Python...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.