Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

text_length(3alleg4) [v7 man page]

text_length(3alleg4)						  Allegro manual					      text_length(3alleg4)

NAME
text_length - Returns the length of a string in pixels. Allegro game programming library. SYNOPSIS
#include <allegro.h> int text_length(const FONT *f, const char *str); DESCRIPTION
Returns the length (in pixels) of a string in the specified font. Example: int width = text_length(font, "I love spam"); ... bmp = create_bitmap(width, height); SEE ALSO
text_height(3alleg4), ex12bit(3alleg4), exmidi(3alleg4), expat(3alleg4), exunicod(3alleg4) Allegro version 4.4.2 text_length(3alleg4)

Check Out this Related Man Page

expat(3alleg4)							  Allegro manual						    expat(3alleg4)

NAME
expat - Using patterned drawing modes and sub-bitmaps. Allegro game programming library. SYNOPSIS
#include <allegro.h> Example expat DESCRIPTION
This program demonstrates the use of patterned drawing and sub-bitmaps. SEE ALSO
BITMAP(3alleg4), END_OF_MAIN(3alleg4), acquire_bitmap(3alleg4), allegro_error(3alleg4), allegro_init(3alleg4), allegro_message(3alleg4), bitmap_mask_color(3alleg4), blit(3alleg4), clear_to_color(3alleg4), create_bitmap(3alleg4), create_sub_bitmap(3alleg4), desktop_pal- ette(3alleg4), destroy_bitmap(3alleg4), drawing_mode(3alleg4), font(3alleg4), install_keyboard(3alleg4), makecol(3alleg4), masked_blit(3alleg4), palette_color(3alleg4), readkey(3alleg4), rectfill(3alleg4), release_bitmap(3alleg4), screen(3alleg4), set_gfx_mode(3alleg4), set_palette(3alleg4), solid_mode(3alleg4), text_height(3alleg4), text_length(3alleg4), textout_ex(3alleg4) Allegro version 4.4.2 expat(3alleg4)
Man Page

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Joining lines to single line in VI

Dear friends, In VI, I have these data shown below: Line1 Line2 Line3 Line4 How can I JOIN these line to the first line? When I finished I should have: Line1 Line2 Line3 Line4 is there a text length limit of how long a single line can be in VI? Thank you much! (10 Replies)
Discussion started by: bobo
10 Replies

2. UNIX for Dummies Questions & Answers

Printer prints blank pages

Hello Everyone :) , I have this printer installed on the network which is an HP 1160. When sending a print job to the printer from SCO Unix 7.1 it prints one line of text and the rest of it comes up with blank pages. I have tried deleting the printer and recreating it; but I am getting... (6 Replies)
Discussion started by: George26
6 Replies

3. Shell Programming and Scripting

AIX/HPUX - Need to get the last few bytes of a text

Hi guys, I am in need of a simple, (typically one-liner) script to get the last 17 bytes of a line. Eg. echo "abcdefghijklmnopqrstuv" here i would need the last 17 bytes of the text ie. fghijklmnopqrstuv The text length is dymanic (but always more than 17)...it can even span upto... (2 Replies)
Discussion started by: n_rajitr
2 Replies

4. Shell Programming and Scripting

How perform search & replace with pattner that contains \n?

In emacs I perform a non-regex search and replace where the pattern is ' + ' and the replacement text length is zero. Note that the first and last characters in the search pattern are apostrophes. How can I write a bash script to automate this search and replace using... (1 Reply)
Discussion started by: siegfried
1 Replies

5. UNIX for Advanced & Expert Users

Using Find command

Hi Friends, I need to find out the number of files available in each directory. It should list no of files and directory name. For ex. if there are directories like : /home/Dir1/Dir2/Dir3 I need the output like the following: Dir1 - x no of files Dir2 - y no of files Dir3 - z no of... (9 Replies)
Discussion started by: NARESH1302
9 Replies

6. Shell Programming and Scripting

wrapping text not exceeding 80 characters

I have a file where the text might exceed 80 characters. I want to have the maximum text lengths to be 80, and cut text from a space. I written an awk script below but does not seem to work very well { gsub("\t"," ") $0 = line $0 while (length <= WIDTH) { line = $0 ... (3 Replies)
Discussion started by: kristinu
3 Replies

7. Shell Programming and Scripting

sendmail long text

This is regarding sendmail. cat test.msg | sendmail -t In test msg I have the following. To: test@mymail.com Subject: Test Long text beings ... Now when I receive the email in Outlook I get an "!" inserted usually at position 990 and repeated mostly after every 990 chars or 65 chars.... (2 Replies)
Discussion started by: roadway
2 Replies

8. UNIX for Dummies Questions & Answers

Centering a line

So I am trying to use the .ce 3 command to center 3 lines in my text, but I am getting an execute permission denied. I made rwx capabilites for all users too. Any idea why I am getting this error? (15 Replies)
Discussion started by: itech4814
15 Replies

9. Programming

Simple capturing of keyboard input without interruption

I would like to make a function or command that checks for keyboard input without interrupting the program and exits the program when a key is pressed (perhaps the 'q' key). The program below monitors and prints/executes commands upon a change in primary (mouse selection) or clipboard buffer. If... (4 Replies)
Discussion started by: bedtime
4 Replies

10. Web Development

Current New Badge Alert Script (Beta 1)

Here is the JS I wrote and am now testing live for alerting a member when they have received a new badge (seems to be working OK so far, still testing live): var badgeChange = readCookie("badgestatechange"); $(function() { if (badgeChange == "1") { if (vbuserId > 0) { var... (0 Replies)
Discussion started by: Neo
0 Replies