473,672 Members | 2,656 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

non true type

hello everyone

I need to print with the e.graphics.draw string 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 2519
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.co m

"a_man" <am************ *@yahoo.dk> wrote in message
news:11******** *************@g 49g2000cwa.goog legroups.com...
hello everyone

I need to print with the e.graphics.draw string 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.FromLogF ont(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.drawst ring 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
2869
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 true = 1 false = 0
46
4224
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
4474
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 preferred for clarity, time-critical code should use the first form." Out of pure curiousity, Why wasn't 'While True' optimized also?
14
2465
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 "counted" string and data in a binary file. Given... #include <stdio.h> int main(int argc, char *argv) { char bstring;
48
30112
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
2497
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 they should always be 0 or 1 to me... (not that I haven't used VB long enough by now to know better). Sorry to pester, but "why is -1 = true?" is a difficult thing to Google! Ruffin Bailey
15
4369
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 particular I'm poking around with some language extensions to C and one of the most obvious extensions is overloading. Since "true" doesn't have type _Bool it makes overloading behavior with _Bool very odd. You'd think that at least it could be...
30
3134
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 not. Actually, True should be equal to anything but False, null, and 0. Is there a workaround for this? Or do I need to change all my comparisons to = 1 instead of = true? response.write True = 1 'prints False response.write True = 0 ...
90
3410
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
2712
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 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) on win32 Type "help", "copyright", "credits" or "license" for more
0
8408
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8932
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8832
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7449
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5709
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2821
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2067
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1819
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.