07-04-2009
To keep the forums high quality for all users, please take the time to format your posts correctly.
First of all, use Code Tags when you post any code or data samples so others can easily read your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags [code] and [/code] by hand.)
Second, avoid adding color or different fonts and font size to your posts. Selective use of color to highlight a single word or phrase can be useful at times, but using color, in general, makes the forums harder to read, especially bright colors like red.
Third, be careful when you cut-and-paste, edit any odd characters and make sure all links are working property.
Thank You.
The UNIX and Linux Forums
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I recently joined this forum and new to UNIX.
Is there any difference between UNIX operating system and UNIX open server? Please explain. (1 Reply)
Discussion started by: Manjit
1 Replies
2. News, Links, Events and Announcements
Chapters on Linux and Unix:
http://www.prenhall.com/divisions/esm/app/author_tanenbaum/custom/mos2e/
Slides, figures, code, lots of goodies on-line!
CHAPTER 10 CASE STUDY 1: UNIX AND LINUX 671
10.1. HISTORY OF UNIX 672
10.1.1. UNICS 672
... (1 Reply)
Discussion started by: Neo
1 Replies
3. Filesystems, Disks and Memory
We are currently running two servers each with remote file systems mounted on each other. They need upgrading from Solaris 2.6 to 8.
Does anyone know if there is a problem with having one server running Solaris 2.6 and the other v8?? Until we have time to upgrade them both. (2 Replies)
Discussion started by: hesmas
2 Replies
4. UNIX for Advanced & Expert Users
I am interested in hearing anyones opinions on what OS they would choose to run a MySQl db and the reasons why, of course. I have a task to build a db server for a project that will be very busy if things work as the creative minds think that it will. I am running a FreeBSD box right now on... (0 Replies)
Discussion started by: smtpgeek
0 Replies
5. UNIX for Dummies Questions & Answers
Can anyone give me info on networking features of the Unix Operating System please.
Thanks in advance (1 Reply)
Discussion started by: WaveZero
1 Replies
6. Shell Programming and Scripting
Hi all,
I prepared a document on UNIX OS. Its an humble attempt to share my knowledge.
Please review the document attached and correct if any mistakes and any suggestions to make it more useful and any troubleshooting information if needed to add.
Please help in making the document to add... (2 Replies)
Discussion started by: gurukottur
2 Replies
7. UNIX for Advanced & Expert Users
Dear administrators I want to post the following question and, honestly, I don't know in which forum to post it since its general meaning.
my question is: Where the operating system are going?
Microkernel, monolithich or hybrid ?
Because this question involves more forums at the same but... (2 Replies)
Discussion started by: Puntino
2 Replies
8. Fedora
Hello. I own a MacBook (black) running Leopard (Mac OS X 10.5.8), and I'm curious about a few things -- any help will be very, very much appreciated. I'm pretty much a newbie to Unix, although I have some very basic command-line skills with Mac OS X's Terminal. So while I know how to work the... (13 Replies)
Discussion started by: Tron55555
13 Replies
9. Programming
The assembly code generated by assembler, from a C-source code depends on the CPU architecture underlying it, eg x-86 . Then does the assembler output of a simple C-source code (containing common function-calls of both windows and linux) differ between Operating Systems ? (1 Reply)
Discussion started by: vishwamitra
1 Replies
10. Google Chrome OS
we have
windows
linux- redhat ubuntu -or more i don't know
unix- solares
snow-lepord
and recently chrome
what do you think
well when i sow that all has extentions like exe -dsb i felt scared (1 Reply)
Discussion started by: Anna Hussie
1 Replies
LEARN ABOUT DEBIAN
load_bitmap_font
load_bitmap_font(3alleg4) Allegro manual load_bitmap_font(3alleg4)
NAME
load_bitmap_font - Grabs a font from a bitmap file. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
FONT *load_bitmap_font(const char *filename, RGB *pal, void *param)
DESCRIPTION
Tries to grab a font from a bitmap. The bitmap can be in any format that load_bitmap understands.
The size of each character is determined by the layout of the image, which should be a rectangular grid containing all the ASCII characters
from space(32) up to the tilde(126). The way the characters are separated depends on the color depth of the image file:
paletted (8 bit) image file Use color 0 for the transparent portions of the characters and fill the spaces between each letter with color
255.
High (15/16 bit) and true (24/32 bit) color image file Use bright pink (maximum red and blue, zero green) for the transparent portions of
the characters and fill the spaces between each letter with bright yellow (maximum red and green, zero blue).
Note that in each horizontal row the bounding boxes around the characters should align and have the same height.
Probably the easiest way to get to grips with how this works is to load up the `demo.dat' file and export the TITLE_FONT into a PCX file.
Have a look at the resulting picture in your paint program: that is the format a font should be in.
Take care with high and true color fonts: Allegro will convert these to the current color depth when you load the font. If you try to use a
font on a bitmap with a different color depth Allegro will do color conversions on the fly, which will be rather slow. For optimal perfor-
mance you should set the color depth to the color depth you want to use before loading any fonts.
RETURN VALUE
Returns a pointer to the font or NULL on error. Remember that you are responsible for destroying the font when you are finished with it to
avoid memory leaks.
SEE ALSO
register_font_file_type(3alleg4), load_font(3alleg4), load_bitmap(3alleg4), set_color_depth(3alleg4), grab_font_from_bitmap(3alleg4)
Allegro version 4.4.2 load_bitmap_font(3alleg4)