472,378 Members | 1,370 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,378 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 8854
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: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
2
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
0
by: jack2019x | last post by:
hello, Is there code or static lib for hook swapchain present? I wanna hook dxgi swapchain present for dx11 and dx9.
0
by: F22F35 | last post by:
I am a newbie to Access (most programming for that matter). I need help in creating an Access database that keeps the history of each user in a database. For example, a user might have lesson 1 sent...

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.