Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

merge_fonts(3alleg4) [debian man page]

merge_fonts(3alleg4)						  Allegro manual					      merge_fonts(3alleg4)

NAME
merge_fonts - Merges two fonts into one font. Allegro game programming library. SYNOPSIS
#include <allegro.h> FONT *merge_fonts(FONT *f1, FONT *f2) DESCRIPTION
This function merges the character ranges from two fonts and returns a new font containing all characters in the old fonts. In general, you cannot merge fonts of different types (eg, TrueType fonts and bitmapped fonts), but as a special case, this function can promote a mono- chrome bitmapped font to a color font and merge those. Example: FONT *myfont; FONT *myfancy_font; FONT *lower_range; FONT *upper_range; FONT *capitals; FONT *combined_font; FONT *tempfont; ... /* Create a font that contains the capitals from */ /* the fancy font but other characters from myfont */ lower_range = extract_font_range(myfont, -1, 'A'-1); upper_range = extract_font_range(myfont, 'Z'+1, -1); capitals = extract_font_range(myfancy_font, 'A', 'Z'); tempfont = merge_fonts(lower_range, capitals); combined_font = merge_fonts(tempfont, upper_range); /* Clean up temporary fonts */ destroy_font(lower_range); destroy_font(upper_range); destroy_font(capitals); destroy_font(tempfont); RETURN VALUE
Returns a pointer to the new 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
extract_font_range(3alleg4), is_trans_font(3alleg4), is_color_font(3alleg4), is_mono_font(3alleg4), exfont(3alleg4) Allegro version 4.4.2 merge_fonts(3alleg4)

Check Out this Related Man Page

excustom(3alleg4)						  Allegro manual						 excustom(3alleg4)

NAME
excustom - Creating custom GUI objects. Allegro game programming library. SYNOPSIS
#include <allegro.h> Example excustom DESCRIPTION
A follow up of the exgui.c example showing how to customise the default Allegro framework. In this case a dialog procedure animates a graphical clock without disrupting other GUI dialogs. A more simple option shows how to dynamically change the font used by all GUI ele- ments. SEE ALSO
BITMAP(3alleg4), DATAFILE(3alleg4), DIALOG(3alleg4), END_OF_MAIN(3alleg4), FONT(3alleg4), allegro_error(3alleg4), allegro_init(3alleg4), allegro_message(3alleg4), blit(3alleg4), circle(3alleg4), circlefill(3alleg4), clear_to_color(3alleg4), create_bitmap(3alleg4), d_but- ton_proc(3alleg4), d_check_proc(3alleg4), d_clear_proc(3alleg4), d_edit_proc(3alleg4), desktop_palette(3alleg4), destroy_bitmap(3alleg4), do_dialog(3alleg4), fixcos(3alleg4), fixed(3alleg4), fixmul(3alleg4), fixsin(3alleg4), fixtoi(3alleg4), font(3alleg4), install_key- board(3alleg4), install_mouse(3alleg4), install_timer(3alleg4), itofix(3alleg4), key(3alleg4), line(3alleg4), load_datafile(3alleg4), makecol(3alleg4), object_message(3alleg4), replace_filename(3alleg4), screen(3alleg4), set_gfx_mode(3alleg4), set_palette(3alleg4), unload_datafile(3alleg4) Allegro version 4.4.2 excustom(3alleg4)
Man Page

6 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Sys Administration

What happend to the Administration board, How come no one posts there? (1 Reply)
Discussion started by: tovsky
1 Replies

2. UNIX for Dummies Questions & Answers

Oracle 7

Hello, does anybody know where I can download a copy of ORACLE 7 or Personal ORACLE 7 ? regards, :D (2 Replies)
Discussion started by: shaft120
2 Replies

3. Shell Programming and Scripting

sed situation

Hi, I'm looking for someone who can think in sed. Basically, I need the trailing characters on every line in a file to be deleted. These characters are all in capitals, and always follow a number, but they often vary in number For instance, on the line: 2006_10_9_p20_TALK I'd want to... (4 Replies)
Discussion started by: Laurel Maury
4 Replies

4. AIX

Install additional fonts ?

Hi, I have two fonts installed on my AIX machine: FONT FILE GLYPH FONT ID NAME SIZE ENCODING ==== ============== ===== ========= 0 Erg22.iso1.snf 12x30 ISO8859-1 1 Erg11.iso1.snf 8x15 ISO8859-1 I want to install more, how to obtain available fonts list ? What filesets I must install ?... (0 Replies)
Discussion started by: vilius
0 Replies

5. What is on Your Mind?

Categorisation of fonts

This one thing that has been on my mind for at least a decade. At times I need a font for a specific purpose, but there is no designer around to guide me. I go to sites that offer fonts and locate one that I think is suitable. There seems to be no common categorisation however, that offers criteria... (5 Replies)
Discussion started by: figaro
5 Replies

6. What is on Your Mind?

Custom Fonts for Usernames, Buttons, Other Short Phrases

I'm thinking to replace many of the buttons like "Reply" or "Thank You" with custom, modern, space age'e looking fonts. When I was game-engine programming in Unity last year, I used fonts like "Terminator" and "Neuropol" and "Space Age" and "Jupiter". At the moment, I cannot get "Neuropol" to... (2 Replies)
Discussion started by: Neo
2 Replies