load_txt_font(3alleg4) Allegro manual load_txt_font(3alleg4)NAME
load_txt_font - Loads a font script. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
FONT *load_txt_font(const char *filename, RGB *pal, void *param)
DESCRIPTION
This function can be used to load scripted fonts. The script file contains a number of lines in the format "filename start end", which
specify the source file for that range of characters, the Unicode value of the first character in the range, and the end character in the
range (optional, if left out, the entire input file will be grabbed). If the filename is replaced by a hyphen, more characters will be
grabbed from the previous input file. For example, the script:
ascii.fnt 0x20 0x7F
- 0xA0 0xFF
dingbats.fnt 0x1000
would import the first 96 characters from ascii.fnt as the range 0x20-0x7F, the next 96 characters from ascii.fnt as the range 0xA0-0xFF,
and the entire contents of dingbats.fnt starting at Unicode position 0x1000.
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)Allegro version 4.4.2 load_txt_font(3alleg4)
How can one step through an ascii file line by line looking for a word and then pull out the whole section that the word is in. I have a project working Oracles tkprof utility where I am trying to look for a word and need to pull out the section of the ascii file that the word is in. I have not... (12 Replies)
i know it's out there, but I cannot remember how to check if a given ascii character string contains all digits or not ... any ideas?
ie...function("123") --> OK
function("NOT_A_NUMBER") --> returns error
thanks!! (2 Replies)
I have the following korn shell script which reads the contents of an ascii file and performs an rexec command based on the line that was just read from the ascii file. The ascii file contains 6 lines, thus, the while loop should execute 6 times. The problem is that the rexec command within the... (2 Replies)
Gurus,
This might be pretty simple.
1. I need a script that will help me count the number of characters of a filename and generate an output as follows
Filename count
ALSAP-016A_R20030413_LDN_DST_MLL_GRN_BS.DLIS 44 ... (2 Replies)
I'm looking at some code, and I'm seeing alot of things like 0x20, 0x60, 0x10, 0x0f, and 0x5f (just to name a few). I've seen really long ones, 0xb8000, and 0xc0000 to name two. What are these things called? I believe they are called 'bits'? How can I use them? Is this actually C, or does it... (9 Replies)
Hi gurus,
I have a file in unix with ascii values. I need to convert all the ascii values in the file to ascii characters. File contains nearly 20000 records with ascii values. (10 Replies)
I am getting a character with a "question mark inside a box". Does anybody know what ascii character i.e. what ascii number would it be. When I copy it in word I get it but when I copy it in notepad it only gives a box. I need to replace that inside my sed command in .SH file so I need to type it... (4 Replies)
Let's suppose i have a hexadecimal array with 16 cells.for example
b3e2d5f636111780
i want to convert it to an array of ascii characters(in C) so that
i can reduce total size of the file i want to put it in.
But i am afraid i have not fully understand the difference between ascii
and hex(i... (3 Replies)
Hi,
I have an ascii file with recurring lines (the file is 36mb so lots of lines) which look like this:
-2.5 -66.324-68.138 935.2 1.953 -0.664 272.617 73.684 -2.428 269.998 0.000
Every 14 lines there is a blank line.
I would like to, for each non-blank line,... (2 Replies)
hi, I have quite a bunch of files with annoyingly long filenames. I wanted to cut the range of characters from 9-18 and just retain the first 8 characters and the .extension. any suggestion how to do it. thanks much.
original filename: 20000105_20000105_20100503.nc.asc
output filename:... (4 Replies)
Hi,
Is there a way to identify the lines in a file having extended ascii characters and display the same?
For instance I have a file abc.txt having below data
aaa|bbb|111|This is first line
aaa|bbb|222|This is secõnd line
aaa|bbb|333|This is third line
aaa|bbb|444|This is foùrth line... (3 Replies)
I want to filter out the special character whose ascii value doesn't fall within the range "" .
Example:� or Ć. So in that case is there any defined range which will filter out this characters.
I can filter those which falls withing "" . Need to filter those special chracter which doesn't... (14 Replies)
i've vi'ed some scripts in the past and when i did, my screen froze. i had to go to another terminal and kill the vi process before i was able to get back my screen.
how can i replicate this behavior on purpose? i want be able to do this also if the file or script was doubled clicked, say... (17 Replies)
Hello,
I am on AIX.
When I encounter extended ascii characters and special characters on a file I need to print..
Byte position, actual character and line number.
Is there a simple command that can give me the above result ?
Thanks in advance (38 Replies)