al_draw_multiline_text - Online Linux Manual PageSection : 3
Updated :
Source : Allegro reference manual
Note :

NAMEal_draw_multiline_text − Allegro 5 API

SYNOPSIS #include <allegro5/allegro_font.h> void al_draw_multiline_text(const ALLEGRO_FONT *font,      ALLEGRO_COLOR color, float x, float y, float max_width, float line_height,      int flags, const char *text)

DESCRIPTIONLike al_draw_text(3), but this function supports drawing multiple lines of text. It will break text in lines based on its contents and the max_width parameter. The lines are then layed out vertically depending on the line_height parameter and drawn each as if al_draw_text(3) was called on them. A newline \n\f[] in the \f[C]text\f[] will cause a "hard" line break after its occurrence in the string. The text after a hard break is placed on a new line. Carriage return is not supported, will not cause a line break, and will likely be drawn as a square or a space depending on the font. The max_width parameter controls the maximum desired width of the lines. This function will try to introduce a "soft" line break after the longest possible series of words that will fit in max_length when drawn with the given font. A "soft" line break can occur either on a space or tab () character. However, it is possible that max_width is too small, or the words in text are too long to fit max_width when drawn with font. In that case, the word that is too wide will simply be drawn completely on a line by itself. If you don't want the text that overflows max_width to be visible, then use al_set_clipping_rectangle(3) to clip it off and hide it. The lines text was split into will each be drawn using the font, x, color and flags parameters, vertically starting at y and with a distance of line_height between them. If line_height is zero (0), the value returned by calling al_get_font_line_height(3) on font will be used as a default instead. The flags ALLEGRO_ALIGN_LEFT, ALLEGRO_ALIGN_CENTRE, ALLEGRO_ALIGN_RIGHT and ALLEGRO_ALIGN_INTEGER will be honoured by this function. If you want to calculate the size of what this function will draw without actually drawing it, or if you need a complex and/or custom layout, you can use al_do_multiline_text(3).

SINCE5.1.9

SEE ALSOal_do_multiline_text(3), al_draw_multiline_text(3), al_draw_multiline_textf(3)
0
Johanes Gumabo
Data Size   :   9,047 byte
man-al_draw_multiline_text.3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 182,252
Visitor ID   :     :  
Visitor IP   :   18.119.135.67   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (rof_nr_x|149|al_draw_multiline_text.3|29|\n\f[] in the \f[C]text\f[] will cause a "hard" line |A newline \f[C]\\n\f[] in the \f[C]text\f[] will cause a "hard" line )