473,322 Members | 1,480 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.

Creating Fonts

Hello everyone!
I just wanted to know how I can create a font from bitmaps in memory
(currently in an array), or from GDI+. I want to be able to use that
font in a textbox, for example.

I have searched a bit on msdn and google, but didn't find anything
useful. A hint or a link would be appreciated :)

Thank you all
Nov 20 '05 #1
2 1245
Check out PrivateFontCollection:

http://www.cs.arizona.edu/classes/cs...ndouts/30.html

You'll still need to create font files beforehand, but that shouldn't be
too difficult. There is a lot of font creation software out there these
days.

Erik

"Zyrthofar Blackcloak" <sh*********@japan.com> wrote in message
news:35********************************@4ax.com...
Hello everyone!
I just wanted to know how I can create a font from bitmaps in memory
(currently in an array), or from GDI+. I want to be able to use that
font in a textbox, for example.

I have searched a bit on msdn and google, but didn't find anything
useful. A hint or a link would be appreciated :)

Thank you all

Nov 20 '05 #2
It's going to be hard to find documentation about creating fonts in
memory, on the fly. I'd try something simpler, like this:

http://www.codeproject.com/useritems/GraphicFonts.asp

Instead of painting to a textbox, could you allow regular text entry to
a normal textbox, and paint the results to a label? This will let you do
that.

Erik

"Zyrthofar Blackcloak" <sh*********@japan.com> wrote in message
news:hc********************************@4ax.com...
Hmmm... the font I want to create is made from SNES Tiles taken from a
file. That means that the font can change anytime, whether by the
program, or by someone editing the file. What I want is to create the
font at startup, everytime the program is run.

I don't actually want to create the font on the HD; I just want to be
able to use it, at least with a textbox, then I dispose it when the
program ends. It doesn't have to be a "font", just something I can use
with my textboxes.
I would have tried GDI+ directly, but the textbox don't have a paint
method.

sorry if I was a bit ambiguous about what I wanted ^-^

On Mon, 9 Feb 2004 17:07:00 -0700, "Erik Frey" <er*******@hotmail.com>
wrote:
Check out PrivateFontCollection:

http://www.cs.arizona.edu/classes/cs...ndouts/30.html

You'll still need to create font files beforehand, but that shouldn't betoo difficult. There is a lot of font creation software out there these
days.

Erik

"Zyrthofar Blackcloak" <sh*********@japan.com> wrote in message
news:35********************************@4ax.com.. .
Hello everyone!
I just wanted to know how I can create a font from bitmaps in memory
(currently in an array), or from GDI+. I want to be able to use that
font in a textbox, for example.

I have searched a bit on msdn and google, but didn't find anything
useful. A hint or a link would be appreciated :)

Thank you all

Nov 20 '05 #3

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

Similar topics

1
by: Jack Charbonneau | last post by:
I have a bunch of custom fonts installed on my system. For instance if I look at the font drop-down in word pad I see about 90 fonts, but if I build an app using VS.Net, add a label, and try to...
4
by: Francois Keyeux | last post by:
hello everyone: i have a web site built using vbasic active server scripting running on iis (it works on either iis 50 and 60, but is designed for iis 50) i know how to create a plain text...
4
by: L | last post by:
Hi there, Does C# support OpenType fonts? My c# application is not recognizing OpenType fonts. Thanks, Lalasa.
4
by: Aaron Gray | last post by:
Is there anyway to get a list of all the availiable fonts in Javascript ? Aaron
2
by: Luc | last post by:
I saw a few posts on this newsgroup about it but nothing to help me resolve this problem: We designed a window in .NET on a platform using small fonts (120 ppp). But this window will run on...
1
by: Atul | last post by:
Hi, I have installed a truetype font (.ttf) on a linux machne (SUSE linux 10, KDE) by copying it to my .fonts folder. I can use the font in all applications like open-office and firefox browser....
12
by: ctclibby | last post by:
Hi all Have a customer that wants a specific font included in her web page design; Comic Sans MS. This is one of the MS core fonts. The problem I have is that some of the *nix browsers do NOT...
3
by: k | last post by:
Hi, I'm trying to migrate from Java to C# and have encountered a problem. I can't seem to find a way to create (ultra)condensed fonts for later use in a program. In Java I had a really nice...
2
by: Dmenace | last post by:
Microsoft blows my mind sometimes, what the hell were they thinking? Oh, wait they weren't, that's right. Anyway, I've got a Setup and Deployment added to my project, and it does everything I...
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...
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)...
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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

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.