1 /* The portable font concept (!?*) 2 */ 3 4 /* Line mode browser version: 5 */ 6 #ifndef HTFONT_H 7 #define HTFONT_H 8 9 typedef long int HTMLFont; /* For now */ 10 11 #define HT_FONT 0 12 #define HT_CAPITALS 1 13 #define HT_BOLD 2 14 #define HT_UNDERLINE 4 15 #define HT_INVERSE 8 16 #define HT_DOUBLE 0x10 17 18 #define HT_BLACK 0 19 #define HT_WHITE 1 20 21 /* 22 * Lynx internal character representations. 23 */ 24 #define HT_NON_BREAK_SPACE ((char)1) 25 #define HT_EN_SPACE ((char)2) 26 #define LY_UNDERLINE_START_CHAR '\003' 27 #define LY_UNDERLINE_END_CHAR '\004' 28 29 /* Turn about is fair play ASCII platforms use EBCDIC tab; 30 EBCDIC platforms use ASCII tab for LY_BOLD_START_CHAR. 31 */ 32 #ifdef EBCDIC 33 #define LY_BOLD_START_CHAR '\011' 34 #else 35 #define LY_BOLD_START_CHAR '\005' 36 #endif 37 38 #define LY_BOLD_END_CHAR '\006' 39 #define LY_SOFT_HYPHEN ((char)7) 40 #define LY_SOFT_NEWLINE ((char)8) 41 42 #ifdef EBCDIC 43 #define IsSpecialAttrChar(a) (((a) > '\002') && ((a) <= '\011') && ((a)!='\t')) 44 #else 45 #define IsSpecialAttrChar(a) (((a) > '\002') && ((a) <= '\010')) 46 #endif 47 48 #define IsNormalChar(a) ((a) != '\0' && !IsSpecialAttrChar(a)) 49 50 #endif /* HTFONT_H */ 51