Commit 3842fca0 authored by Robert Sprowson's avatar Robert Sprowson
Browse files

Added some missing font_paint() flags

font.h: missing flags defined (those flags that can be used without needing to change the prototype of font_paint()
fontlist.h: comment typo
No code changes, retagged as RISC_OSLib-5_77
parent 8ec75274
......@@ -183,9 +183,12 @@ extern os_error * font_strwidth(font_string *fs);
#define font_JUSTIFY 0x0001 /* justify text */
#define font_RUBOUT 0x0002 /* rub-out box required */
#define font_ABS 0x0004 /* absolute co-ordinates */
/* 8 not used */
/* b2 is RISC OS 2 era, b3 not used */
#define font_OSCOORDS 0x0010 /* os coords supplied (otherwise 1/72000 inch) */
#define font_LENGTH 0x0080 /* length supplied */
/* font_paint() prototype means b5-b8 not available */
#define font_KERN 0x0200 /* kern the string */
#define font_RTOL 0x0400 /* right to left */
#define font_BLENDED 0x0800 /* use background blending */
#define font_16BIT 0x1000 /* 16-bit string supplied */
#define font_32BIT 0x2000 /* 32-bit string supplied */
......@@ -320,7 +323,7 @@ extern os_error *font_findcaret(font_string *fs);
*
* Parameters: font -- the font handle
* char -- the ASCII character
* int options -- only relevant option if font_OSCOORDS
* int options -- only relevant option is font_OSCOORDS
* font_info * -- pointer to buffer to hold font info
* Returns: possible error condition.
* Other Info: if OS coords are used and font has been scaled, box may
......
......@@ -43,7 +43,7 @@ typedef struct fontlist_node
Corpus.Medium, Corpus.Bold, Selwyn,
Trinity.Medium, Trinity.Bold, Trinity.Medium.Italic,
Widget.Medium.Italic.Outline
This will be stored in the following way: (#'s denote flag's which are TRUE)
This will be stored in the following way: (#'s denote flags which are TRUE)
--+--> Corpus --+--> # Medium
| |
| +--> # Bold
......@@ -56,7 +56,7 @@ typedef struct fontlist_node
|
+--> Widget --+--> Medium -----> # Italic.Outline
[ Brothers are connected vertically downwars, sons to their parents
[ Brothers are connected vertically downwards, sons to their parents
right-to-left ]
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment