|
Fonts for menu. |
Eman_321
Member #12,300
October 2010
|
Hi, been a while folks. Is there a way to download some .pcx fonts? I don't know how to make one Thanks for help.
|
Billybob
Member #3,136
January 2003
|
That should let you download fonts in the normal TTF format and make PCX files out of it.
|
Eman_321
Member #12,300
October 2010
|
Thanks a lot man.
|
Audric
Member #907
January 2001
|
If you want to draw your own: If you want to use existing bitmap fonts, such as some from: |
Eman_321
Member #12,300
October 2010
|
Thanks Audric, I will try them out as well, and see which works best. EDIT: How does one cut and paste it to allegro font?
|
Matthew Leverton
Supreme Loser
January 1999
|
Use load_font() on the exported bitmap. |
Eman_321
Member #12,300
October 2010
|
Hi Matthew, thanks for replying. I tried it anyways and it didn't work. Can you explain what you mean a bit clearer? Thanks
|
Thomas Fjellstrom
Member #476
June 2000
|
Eman_321 said: I don't quite get what you mean. load_font() loads .pcx file not .bmp? It doesn't matter. Can be any format allegro supports through its built in image loaders, or through addons that extend load_bitmap to support things like png. -- |
Eman_321
Member #12,300
October 2010
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
The image file that you load with load_font has to have a predefined format. See load_bitmap_font for details. This is what a bitmap font looks like : My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Eman_321
Member #12,300
October 2010
|
oh right. I will read about the load_bitmap_font() function thanks. the link Audric posted before has some of those bitmap files, so will try it out. Thank you EDIT:
|
Thomas Fjellstrom
Member #476
June 2000
|
That gif is not the right colors. or format. The orange and pink colors are very important. -- |
Eman_321
Member #12,300
October 2010
|
I tried making one in photoshop, it didn't work. Do I have to have all the letters in it? It is time consuming. I can't get the bitmap generator to have orange background and letters on pink background. Anything I can try? Thanks
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
Eman_321 said: I can't get the bitmap generator to have orange background and letters on pink background. The space between letters is supposed to be bright yellow (r,g,b)=(255,255,0) and the background for each letter is supposed to be magic pink(255,0,255). Save the file as a 24 bit bitmap. Make sure each row of letters lines up vertically - they all have to have the same height too. I don't think you have to have every character, but it should be at least 96 characters worth (of potentially empty magic pink rectangles). My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Eman_321
Member #12,300
October 2010
|
96 characters!?? wow . OK I'll give it another go. Thanks
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
If you still can't get it to work, post the image that you are using as an attachment. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Tobias Dammers
Member #2,604
August 2002
|
Two side notes:
--- |
Eman_321
Member #12,300
October 2010
|
Well it didn't crash, but I am not seeing anything on the screen at all!
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
You're probably not seeing anything because you don't have the letters in the correct order. Take another look at the bitmap font I showed you earlier. load_bitmap_font reads from left to right, top to bottom. You have capital A starting in the second position when it should start in the 34th position. Also, you might want to make your magic pink rectangles slightly taller so that no letters fall off the edge. If they even load that way, they will likely be cut off so you only have a partial letter when you print it on the screen. Also, the top of each row has to have the same y value, as well as the bottom of each row. And the height of each row has to be the same. If you wait a little bit, I'll whip up a font template maker. Here it is : From the command line, type FontMaker.exe --help or just FontMaker.exe to see the usage information. FontMaker will create a new font template with or without text, with characters any size 4x4 or greater and as .bmp, .pcx, or .tga files. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Eman_321
Member #12,300
October 2010
|
Sorry for the long reply, I'm a little sick
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
Good luck. Let us know how it goes. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Eman_321
Member #12,300
October 2010
|
Wow, yeah that FontMaker software is handy. Is it possible to change the default font?
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
Eman_321 said: Is it possible to change the default font? Not at this time, no. I suppose I could add an option to load a bitmap font from a file and use that as the font, but it would only be good for resizing a font, although that might be handy. You could do the same thing within your program though, by calling CreateFontBitmap and specifying a different font, and then saving the resulting bitmap. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Eman_321
Member #12,300
October 2010
|
oh my G! you developed FontMaker ? CreateFontBitmap() doesn't appear to be an allegro function..so I am not sure what you mean..
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
Look at the source code that came with FontMaker, CreateFontBitmap is a function I wrote. Feel free to copy it out and use it in your projects. MIT license, if any. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
|