473,320 Members | 1,976 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,320 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 4562
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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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: 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: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.