473,407 Members | 2,312 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,407 software developers and data experts.

Help: How do I load a raster font?

Please help. I got no response to my previous query "?Using raster fonts as
graphics in dotNet?" posted on 7th July.

The principal question remains: How can I (if I can at all) select a raster
font (say with extension .fon) to associate with a form and use it to draw
text on the form? The problem seems to be that names of raster fonts aren't
recognised in the Font constructor which requires fonts to be members of a
font family (ie in TrueType or OpenType format). Is there an alternative
constructor, or another way of getting round the problem?

More detailed responses to the original email which poses some alternatives
would also be very welcome. Someone must have some expert knowledge in this
field.

John Tempest
Nov 13 '05 #1
1 4576
GDI+ only supports true-type fonts, so you can't use raster fonts at all in
..NET (without using p/invoke).

I have code that will allow you to use p/invoke to draw text in non-raster
fonts, but this will not work for your controls on the forms.

You could try converting the raster font into a true-type font, I don't
know if there are any tools out there to do this.

S.
"John Tempest" <Jo**********@blueyonder.co.uk> wrote in message
news:OL**************@TK2MSFTNGP11.phx.gbl...
Please help. I got no response to my previous query "?Using raster fonts as graphics in dotNet?" posted on 7th July.

The principal question remains: How can I (if I can at all) select a raster font (say with extension .fon) to associate with a form and use it to draw
text on the form? The problem seems to be that names of raster fonts aren't recognised in the Font constructor which requires fonts to be members of a
font family (ie in TrueType or OpenType format). Is there an alternative
constructor, or another way of getting round the problem?

More detailed responses to the original email which poses some alternatives would also be very welcome. Someone must have some expert knowledge in this field.

John Tempest

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: martingerber | last post by:
Hi, I have the following script (javascript in html document): <html> <head> <meta http-equiv="content-type" content="text/html;charset=ISO-8859-1"> <title>Standort Speichern</title>
3
by: Mike | last post by:
Hey guys I am pulling my hair out on this problem!!!!! Any help or ideas or comments on how to make this work I would be grateful! I have been working on this for the past 4 days and nothing I do...
5
by: abhishekjha10 | last post by:
Hello everybody, I am trying to create a mini OS in C. Can you help me with some helpful links and sites. Thankyou. Abhishek Jha.
2
by: MyNameIsnt | last post by:
Can anyone tell me why, when I click on the buttons it register 2 characters on the display? if you use the right mousebutton it works ok, but the buttons dont flash?? it works fine without the...
10
by: Bharat | last post by:
Hi Folks, Suppose I have two link button on a page (say lnkBtn1 and lnkBtn2). On the click event of the lnkbtn1 I have to add a dynamically created control. And On the click event of the lnkBtn2 I...
0
by: IamIan | last post by:
I've had to migrate back to Python 2.1 and am now trying to use os.spawnv to get around a memory leak (either in Python or ArcGIS or both) in a geoprocessing script. This script (Second Script)...
1
by: erictomlinson | last post by:
I'm dying here trying to figure this out for days. Here's the scenario: 1) External script.as file dynamically imported to loader.swf file that creates a textfield (createTextField) 2)...
2
by: thuythu | last post by:
Please help me.... I used and Javascript to view the data. But when i click button open a popup windows, then select data and click save button. The popup close and return the main page, but the...
7
by: gubbachchi | last post by:
Hi all, In my application I need to display the data fetched from mysql database after the user selects date from javascript calender. I have written the code in which after the user selects the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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.