469,366 Members | 2,408 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,366 developers. It's quick & easy.

Using System and FixedSys fonts

Hello,

How can I use the 'System' or 'FixedSys' font in my .NET
application using controls (TextBox, Button and ListView)?

Thanks,
Jul 19 '05 #1
2 8600
Thanks for the reply,

I understand that .Net does not support non-true type
fonts (ie Screen Fonts). I should of made that clear in my
question, but what I did to know if there are any sample
code out there which uses GDI rather than GDI+ to draw
text using Screen Fonts. The problem I've got is I'm doing
a conversion into C#, the existing code uses FixedSys and
System in almost every screen, I've already tried using
Courier New and Lucia Console and they do not give a good
match.

Thanks,
-----Original Message-----
Hi, Buddy

VS.Net can't use bitmap fonts in font objects. If you need a fixed spacefont, your best bet would be 'Courier New'

Thank you for choosing the MSDN Managed Newsgroups,

John Eikanger
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.(c) 2003 Microsoft Corporation. All rights reserved.
--------------------
| Content-Class: urn:content-classes:message
| From: "Buddy" <Bu***@Onlinework.com>
| Sender: "Buddy" <Bu***@Onlinework.com>
| Subject: Using System and FixedSys fonts
| Date: Mon, 4 Aug 2003 03:55:31 -0700
| Lines: 6
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| Hello,
|
| How can I use the 'System' or 'FixedSys' font in my .NET| application using controls (TextBox, Button and ListView)?|
| Thanks,
|

.

Jul 19 '05 #2
Hi,

I understand that .Net does not support non-true type
fonts (ie Screen Fonts). I should of made that clear in my
question, but what I did to know if there are any sample
code out there which uses GDI rather than GDI+ to draw
text using Screen Fonts. The problem I've got is I'm doing
a conversion into C#, the existing code uses FixedSys and
System in almost every screen, I've already tried using
Courier New and Lucia Console and they do not give a good
match.

Your original question indicated that you wanted to have some
of the standard controls use this font. That's not going to
happen - those controls use System.Drawing to do their drawing,
and are therefore limited to TT fonts.

You could interop with GDI, provided you'll be the one calling
TextOut() or ExtTextOut(). This means that you'll have to handle
all the drawing for every control which you intend to use these
fonts.

You'd really be better off using a replacement TT font, unless
you're up for that much effort. But if you want to do it yourself,
you can probably find some code examples on gotdotnet.com top show
how to draw the controls yourself, and probably how to interop too.

Thanks,
- John
Microsoft Developer Support
This posting is provided "AS IS" with no warranties, and confers no rights.
Visit http://www.microsoft.com/security for current information on security.

Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Buddy | last post: by
10 posts views Thread by Kamilche | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.