473,396 Members | 1,940 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,396 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 9008
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.