473,322 Members | 1,421 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,322 software developers and data experts.

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 8994
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Simon Harvey | last post by:
Whato chaps, I work (or am hoping to work! :) for a company that specialises in the following: - Localisation of media - including software, manuals, literature and training material. -...
5
by: Mike M | last post by:
Hi all, Attempting to do css for cross platform/browser compatibility. Have an issue with IE6 sp1 running on NT4. When using IE6 sp1, example 1 works fine, example 2 produces unreadable text....
2
by: Adry | last post by:
Hi, how can I retrieve the system fonts folder ? or, better, from fontname how can I retrieve the font file complete path ? For example, having a "Tahoma" fontname, I would like to get the...
2
by: Buddy | last post by:
Hello, How can I use the 'System' or 'FixedSys' font in my .NET application using controls (TextBox, Button and ListView)? Thanks,
10
by: Kamilche | last post by:
I have a question for all you Pythoneers out there. I'm making a game with Python, and have a need for fonts. I am currently using a free TrueType font, but am considering switching to a bitmap...
2
by: Adry | last post by:
Hi, I've a component (DLL COM) that retrieves Fonts system's folder by calling SHGetSpecialFolderLocation / SHGetPathFromIDList windows API. Using this component from VB 6.0 it's all OK....
3
by: Jonesgj | last post by:
Hi, How would I return a list of available fonts. I'm writing a simple word processor, and have got the font dialog working, but wanted to create a toolbar dropdown with a list of fonts in,...
2
by: Gary | last post by:
1. I've installed a bunch of fonts in main application, which is in native C++ code using AddFontResourceEx 2. A C# application is launched from this main application, but failed to enumerate...
1
nirmalsingh
by: nirmalsingh | last post by:
hai all, i am using c#.net windows application. i want to load all the fonts in a combo box which is installed in my system. how to do this? thanx in advance with Cheers Nirmal
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.