|
|
DataMuseum.dkPresents historical artifacts from the history of: RC9000 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RC9000 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: X
Length: 5910 (0x1716)
Names: »XDrawText.3X«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./usr/man/cat3/XDrawText.3X«
0x0000…0020 0a 0a 0a 5f 08 4f 5f 08 6e 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 5f 08 4d 5f 08 61 5f 08 6e 5f ┆ _ O_ n_ l_ i_ n_ e _ M_ a_ n_┆
0x0020…0040 08 75 5f 08 61 5f 08 6c 20 20 20 20 20 20 20 20 20 20 20 4c 69 62 72 61 72 79 20 46 75 6e 63 74 ┆ u_ a_ l Library Funct┆
0x0040…0060 69 6f 6e 73 20 20 20 20 20 20 20 20 20 20 20 58 44 72 61 77 54 65 78 74 28 33 58 29 0a 0a 0a 0a ┆ions XDrawText(3X) ┆
0x0060…0080 4e 08 4e 08 4e 08 4e 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 0a 20 20 20 ┆N N N NA A A AM M M ME E E E ┆
0x0080…00a0 20 20 58 44 72 61 77 54 65 78 74 2c 20 58 44 72 61 77 54 65 78 74 31 36 2c 20 58 54 65 78 74 49 ┆ XDrawText, XDrawText16, XTextI┆
0x00a0…00c0 74 65 6d 2c 20 58 54 65 78 74 49 74 65 6d 31 36 20 2d 20 64 72 61 77 0a 20 20 20 20 20 70 6f 6c ┆tem, XTextItem16 - draw pol┆
0x00c0…00e0 79 74 65 78 74 20 74 65 78 74 20 61 6e 64 20 74 65 78 74 20 64 72 61 77 69 6e 67 20 73 74 72 75 ┆ytext text and text drawing stru┆
0x00e0…0100 63 74 75 72 65 73 0a 0a 53 08 53 08 53 08 53 59 08 59 08 59 08 59 4e 08 4e 08 4e 08 4e 54 08 54 ┆ctures S S S SY Y Y YN N N NT T┆
0x0100…0120 08 54 08 54 41 08 41 08 41 08 41 58 08 58 08 58 08 58 0a 20 20 20 20 20 58 44 72 61 77 54 65 78 ┆ T TA A A AX X X X XDrawTex┆
0x0120…0140 74 28 5f 08 64 5f 08 69 5f 08 73 5f 08 70 5f 08 6c 5f 08 61 5f 08 79 2c 20 5f 08 64 2c 20 5f 08 ┆t(_ d_ i_ s_ p_ l_ a_ y, _ d, _ ┆
0x0140…0160 67 5f 08 63 2c 20 5f 08 78 2c 20 5f 08 79 2c 20 5f 08 69 5f 08 74 5f 08 65 5f 08 6d 5f 08 73 2c ┆g_ c, _ x, _ y, _ i_ t_ e_ m_ s,┆
0x0160…0180 20 5f 08 6e 5f 08 69 5f 08 74 5f 08 65 5f 08 6d 5f 08 73 29 0a 20 20 20 20 20 20 20 20 20 20 20 ┆ _ n_ i_ t_ e_ m_ s) ┆
0x0180…01a0 44 69 73 70 6c 61 79 20 2a 5f 08 64 5f 08 69 5f 08 73 5f 08 70 5f 08 6c 5f 08 61 5f 08 79 3b 0a ┆Display *_ d_ i_ s_ p_ l_ a_ y; ┆
0x01a0…01c0 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 61 62 6c 65 20 5f 08 64 3b 0a 20 20 20 20 20 20 20 ┆ Drawable _ d; ┆
0x01c0…01e0 20 20 20 20 47 43 20 5f 08 67 5f 08 63 3b 0a 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 5f 08 ┆ GC _ g_ c; int _ ┆
0x01e0…0200 78 2c 20 5f 08 79 3b 0a 20 20 20 20 20 20 20 20 20 20 20 58 54 65 78 74 49 74 65 6d 20 2a 5f 08 ┆x, _ y; XTextItem *_ ┆
0x0200…0220 69 5f 08 74 5f 08 65 5f 08 6d 5f 08 73 3b 0a 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 5f 08 ┆i_ t_ e_ m_ s; int _ ┆
0x0220…0240 6e 5f 08 69 5f 08 74 5f 08 65 5f 08 6d 5f 08 73 3b 0a 0a 20 20 20 20 20 58 44 72 61 77 54 65 78 ┆n_ i_ t_ e_ m_ s; XDrawTex┆
0x0240…0260 74 31 36 28 5f 08 64 5f 08 69 5f 08 73 5f 08 70 5f 08 6c 5f 08 61 5f 08 79 2c 20 5f 08 64 2c 20 ┆t16(_ d_ i_ s_ p_ l_ a_ y, _ d, ┆
0x0260…0280 5f 08 67 5f 08 63 2c 20 5f 08 78 2c 20 5f 08 79 2c 20 5f 08 69 5f 08 74 5f 08 65 5f 08 6d 5f 08 ┆_ g_ c, _ x, _ y, _ i_ t_ e_ m_ ┆
0x0280…02a0 73 2c 20 5f 08 6e 5f 08 69 5f 08 74 5f 08 65 5f 08 6d 5f 08 73 29 0a 20 20 20 20 20 20 20 20 20 ┆s, _ n_ i_ t_ e_ m_ s) ┆
0x02a0…02c0 20 20 44 69 73 70 6c 61 79 20 2a 5f 08 64 5f 08 69 5f 08 73 5f 08 70 5f 08 6c 5f 08 61 5f 08 79 ┆ Display *_ d_ i_ s_ p_ l_ a_ y┆
0x02c0…02e0 3b 0a 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 61 62 6c 65 20 5f 08 64 3b 0a 20 20 20 20 20 ┆; Drawable _ d; ┆
0x02e0…0300 20 20 20 20 20 20 47 43 20 5f 08 67 5f 08 63 3b 0a 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 ┆ GC _ g_ c; int ┆
0x0300…0320 5f 08 78 2c 20 5f 08 79 3b 0a 20 20 20 20 20 20 20 20 20 20 20 58 54 65 78 74 49 74 65 6d 31 36 ┆_ x, _ y; XTextItem16┆
0x0320…0340 20 2a 5f 08 69 5f 08 74 5f 08 65 5f 08 6d 5f 08 73 3b 0a 20 20 20 20 20 20 20 20 20 20 20 69 6e ┆ *_ i_ t_ e_ m_ s; in┆
0x0340…0360 74 20 5f 08 6e 5f 08 69 5f 08 74 5f 08 65 5f 08 6d 5f 08 73 3b 0a 0a 41 08 41 08 41 08 41 52 08 ┆t _ n_ i_ t_ e_ m_ s; A A A AR ┆
0x0360…0380 52 08 52 08 52 47 08 47 08 47 08 47 55 08 55 08 55 08 55 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 ┆R R RG G G GU U U UM M M ME E E ┆
0x0380…03a0 45 4e 08 4e 08 4e 08 4e 54 08 54 08 54 08 54 53 08 53 08 53 08 53 0a 20 20 20 20 20 5f 08 64 20 ┆EN N N NT T T TS S S S _ d ┆
0x03a0…03c0 20 20 20 20 20 20 20 20 53 70 65 63 69 66 69 65 73 20 74 68 65 20 64 72 61 77 61 62 6c 65 2e 0a ┆ Specifies the drawable. ┆
0x03c0…03e0 0a 20 20 20 20 20 5f 08 64 5f 08 69 5f 08 73 5f 08 70 5f 08 6c 5f 08 61 5f 08 79 20 20 20 53 70 ┆ _ d_ i_ s_ p_ l_ a_ y Sp┆
0x03e0…0400 65 63 69 66 69 65 73 20 74 68 65 20 63 6f 6e 6e 65 63 74 69 6f 6e 20 74 6f 20 74 68 65 20 58 20 ┆ecifies the connection to the X ┆
0x0400…0420 73 65 72 76 65 72 2e 0a 0a 20 20 20 20 20 5f 08 67 5f 08 63 20 20 20 20 20 20 20 20 53 70 65 63 ┆server. _ g_ c Spec┆
0x0420…0440 69 66 69 65 73 20 74 68 65 20 47 43 2e 0a 0a 20 20 20 20 20 5f 08 69 5f 08 74 5f 08 65 5f 08 6d ┆ifies the GC. _ i_ t_ e_ m┆
0x0440…0460 5f 08 73 20 20 20 20 20 53 70 65 63 69 66 69 65 73 20 61 20 70 6f 69 6e 74 65 72 20 74 6f 20 61 ┆_ s Specifies a pointer to a┆
0x0460…0480 6e 20 61 72 72 61 79 20 6f 66 20 74 65 78 74 20 69 74 65 6d 73 2e 0a 0a 20 20 20 20 20 5f 08 6e ┆n array of text items. _ n┆
0x0480…04a0 5f 08 69 5f 08 74 5f 08 65 5f 08 6d 5f 08 73 20 20 20 20 53 70 65 63 69 66 69 65 73 20 74 68 65 ┆_ i_ t_ e_ m_ s Specifies the┆
0x04a0…04c0 20 6e 75 6d 62 65 72 20 6f 66 20 74 65 78 74 20 69 74 65 6d 73 20 69 6e 20 74 68 65 20 61 72 72 ┆ number of text items in the arr┆
0x04c0…04e0 61 79 2e 0a 0a 20 20 20 20 20 5f 08 78 0a 20 20 20 20 20 5f 08 79 20 20 20 20 20 20 20 20 20 53 ┆ay. _ x _ y S┆
0x04e0…0500 70 65 63 69 66 79 20 74 68 65 20 78 20 61 6e 64 20 79 20 63 6f 6f 72 64 69 6e 61 74 65 73 2c 20 ┆pecify the x and y coordinates, ┆
0x0500…0520 77 68 69 63 68 20 61 72 65 20 72 65 6c 61 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 ┆which are rela- t┆
0x0520…0540 69 76 65 20 74 6f 20 74 68 65 20 6f 72 69 67 69 6e 20 6f 66 20 74 68 65 20 73 70 65 63 69 66 69 ┆ive to the origin of the specifi┆
0x0540…0560 65 64 20 64 72 61 77 61 62 6c 65 20 61 6e 64 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 ┆ed drawable and d┆
0x0560…0580 65 66 69 6e 65 20 74 68 65 20 6f 72 69 67 69 6e 20 6f 66 20 74 68 65 20 66 69 72 73 74 20 63 68 ┆efine the origin of the first ch┆
0x0580…05a0 61 72 61 63 74 65 72 2e 0a 0a 44 08 44 08 44 08 44 45 08 45 08 45 08 45 53 08 53 08 53 08 53 43 ┆aracter. D D D DE E E ES S S SC┆
0x05a0…05c0 08 43 08 43 08 43 52 08 52 08 52 08 52 49 08 49 08 49 08 49 50 08 50 08 50 08 50 54 08 54 08 54 ┆ C C CR R R RI I I IP P P PT T T┆
0x05c0…05e0 08 54 49 08 49 08 49 08 49 4f 08 4f 08 4f 08 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 54 68 65 ┆ TI I I IO O O ON N N N The┆
0x05e0…0600 20 5f 08 58 5f 08 44 5f 08 72 5f 08 61 5f 08 77 5f 08 54 5f 08 65 5f 08 78 5f 08 74 5f 08 31 5f ┆ _ X_ D_ r_ a_ w_ T_ e_ x_ t_ 1_┆
0x0600…0620 08 36 20 66 75 6e 63 74 69 6f 6e 20 69 73 20 73 69 6d 69 6c 61 72 20 74 6f 20 5f 08 58 5f 08 44 ┆ 6 function is similar to _ X_ D┆
0x0620…0640 5f 08 72 5f 08 61 5f 08 77 5f 08 54 5f 08 65 5f 08 78 5f 08 74 20 65 78 63 65 70 74 20 74 68 61 ┆_ r_ a_ w_ T_ e_ x_ t except tha┆
0x0640…0660 74 0a 20 20 20 20 20 69 74 20 75 73 65 73 20 32 2d 62 79 74 65 20 6f 72 20 31 36 2d 62 69 74 20 ┆t it uses 2-byte or 16-bit ┆
0x0660…0680 63 68 61 72 61 63 74 65 72 73 2e 20 20 42 6f 74 68 20 66 75 6e 63 74 69 6f 6e 73 20 61 6c 6c 6f ┆characters. Both functions allo┆
0x0680…06a0 77 0a 20 20 20 20 20 63 6f 6d 70 6c 65 78 20 73 70 61 63 69 6e 67 20 61 6e 64 20 66 6f 6e 74 20 ┆w complex spacing and font ┆
0x06a0…06c0 73 68 69 66 74 73 20 62 65 74 77 65 65 6e 20 63 6f 75 6e 74 65 64 20 73 74 72 69 6e 67 73 2e 0a ┆shifts between counted strings. ┆
0x06c0…06e0 0a 20 20 20 20 20 45 61 63 68 20 74 65 78 74 20 69 74 65 6d 20 69 73 20 70 72 6f 63 65 73 73 65 ┆ Each text item is processe┆
0x06e0…0700 64 20 69 6e 20 74 75 72 6e 2e 20 20 41 20 66 6f 6e 74 20 6d 65 6d 62 65 72 20 6f 74 68 65 72 0a ┆d in turn. A font member other ┆
0x0700…0720 20 20 20 20 20 74 68 61 6e 20 5f 08 4e 5f 08 6f 5f 08 6e 5f 08 65 20 69 6e 20 61 6e 20 69 74 65 ┆ than _ N_ o_ n_ e in an ite┆
0x0720…0740 6d 20 63 61 75 73 65 73 20 74 68 65 20 66 6f 6e 74 20 74 6f 20 62 65 20 73 74 6f 72 65 64 20 69 ┆m causes the font to be stored i┆
0x0740…0760 6e 20 74 68 65 20 47 43 0a 20 20 20 20 20 61 6e 64 20 75 73 65 64 20 66 6f 72 20 73 75 62 73 65 ┆n the GC and used for subse┆
0x0760…0780 71 75 65 6e 74 20 74 65 78 74 2e 20 41 20 74 65 78 74 20 65 6c 65 6d 65 6e 74 20 64 65 6c 74 61 ┆quent text. A text element delta┆
0x0780…07a0 20 73 70 65 63 69 66 69 65 73 0a 20 20 20 20 20 61 6e 20 61 64 64 69 74 69 6f 6e 61 6c 20 63 68 ┆ specifies an additional ch┆
0x07a0…07c0 61 6e 67 65 20 69 6e 20 74 68 65 20 70 6f 73 69 74 69 6f 6e 20 61 6c 6f 6e 67 20 74 68 65 20 78 ┆ange in the position along the x┆
0x07c0…07e0 20 61 78 69 73 20 62 65 66 6f 72 65 0a 20 20 20 20 20 74 68 65 20 73 74 72 69 6e 67 20 69 73 20 ┆ axis before the string is ┆
0x07e0…0800 64 72 61 77 6e 2e 20 54 68 65 20 64 65 6c 74 61 20 69 73 20 61 6c 77 61 79 73 20 61 64 64 65 64 ┆drawn. The delta is always added┆
0x0800…0820 20 74 6f 20 74 68 65 20 63 68 61 72 2d 0a 20 20 20 20 20 61 63 74 65 72 20 6f 72 69 67 69 6e 20 ┆ to the char- acter origin ┆
0x0820…0840 61 6e 64 20 69 73 20 6e 6f 74 20 64 65 70 65 6e 64 65 6e 74 20 6f 6e 20 61 6e 79 20 63 68 61 72 ┆and is not dependent on any char┆
0x0840…0860 61 63 74 65 72 69 73 74 69 63 73 20 6f 66 0a 20 20 20 20 20 74 68 65 20 66 6f 6e 74 2e 20 20 45 ┆acteristics of the font. E┆
0x0860…0880 61 63 68 20 63 68 61 72 61 63 74 65 72 20 69 6d 61 67 65 2c 20 61 73 20 64 65 66 69 6e 65 64 20 ┆ach character image, as defined ┆
0x0880…08a0 62 79 20 74 68 65 20 66 6f 6e 74 20 69 6e 0a 20 20 20 20 20 74 68 65 20 47 43 2c 20 69 73 20 74 ┆by the font in the GC, is t┆
0x08a0…08c0 72 65 61 74 65 64 20 61 73 20 61 6e 20 61 64 64 69 74 69 6f 6e 61 6c 20 6d 61 73 6b 20 66 6f 72 ┆reated as an additional mask for┆
0x08c0…08e0 20 61 20 66 69 6c 6c 20 6f 70 65 72 61 2d 0a 20 20 20 20 20 74 69 6f 6e 20 6f 6e 20 74 68 65 20 ┆ a fill opera- tion on the ┆
0x08e0…0900 64 72 61 77 61 62 6c 65 2e 20 20 54 68 65 20 64 72 61 77 61 62 6c 65 20 69 73 20 6d 6f 64 69 66 ┆drawable. The drawable is modif┆
0x0900…0920 69 65 64 20 6f 6e 6c 79 20 77 68 65 72 65 0a 20 20 20 20 20 74 68 65 20 66 6f 6e 74 20 63 68 61 ┆ied only where the font cha┆
0x0920…0940 72 61 63 74 65 72 20 68 61 73 20 61 20 62 69 74 20 73 65 74 20 74 6f 20 31 2e 20 20 49 66 20 61 ┆racter has a bit set to 1. If a┆
0x0940…0960 20 74 65 78 74 20 69 74 65 6d 20 67 65 6e 2d 0a 20 20 20 20 20 65 72 61 74 65 73 20 61 20 5f 08 ┆ text item gen- erates a _ ┆
0x0960…0980 42 5f 08 61 5f 08 64 5f 08 46 5f 08 6f 5f 08 6e 5f 08 74 20 65 72 72 6f 72 2c 20 74 68 65 20 70 ┆B_ a_ d_ F_ o_ n_ t error, the p┆
0x0980…09a0 72 65 76 69 6f 75 73 20 74 65 78 74 20 69 74 65 6d 73 20 6d 61 79 20 68 61 76 65 0a 20 20 20 20 ┆revious text items may have ┆
0x09a0…09c0 20 62 65 65 6e 20 64 72 61 77 6e 2e 0a 0a 20 20 20 20 20 46 6f 72 20 66 6f 6e 74 73 20 64 65 66 ┆ been drawn. For fonts def┆
0x09c0…09e0 69 6e 65 64 20 77 69 74 68 20 6c 69 6e 65 61 72 20 69 6e 64 65 78 69 6e 67 20 72 61 74 68 65 72 ┆ined with linear indexing rather┆
0x09e0…0a00 20 74 68 61 6e 20 32 2d 62 79 74 65 0a 20 20 20 20 20 6d 61 74 72 69 78 20 69 6e 64 65 78 69 6e ┆ than 2-byte matrix indexin┆
0x0a00…0a20 67 2c 20 65 61 63 68 20 5f 08 58 5f 08 43 5f 08 68 5f 08 61 5f 08 72 5f 08 32 5f 08 62 20 73 74 ┆g, each _ X_ C_ h_ a_ r_ 2_ b st┆
0x0a20…0a40 72 75 63 74 75 72 65 20 69 73 20 69 6e 74 65 72 70 72 65 74 65 64 20 61 73 20 61 0a 20 20 20 20 ┆ructure is interpreted as a ┆
0x0a40…0a60 20 31 36 2d 62 69 74 20 6e 75 6d 62 65 72 20 77 69 74 68 20 62 79 74 65 31 20 61 73 20 74 68 65 ┆ 16-bit number with byte1 as the┆
0x0a60…0a80 20 6d 6f 73 74 2d 73 69 67 6e 69 66 69 63 61 6e 74 20 62 79 74 65 2e 0a 0a 0a 0a 0a 0a 0a 0a 20 ┆ most-significant byte. ┆
0x0a80…0aa0 20 20 20 20 42 6f 74 68 20 66 75 6e 63 74 69 6f 6e 73 20 75 73 65 20 74 68 65 73 65 20 47 43 20 ┆ Both functions use these GC ┆
0x0aa0…0ac0 63 6f 6d 70 6f 6e 65 6e 74 73 3a 20 66 75 6e 63 74 69 6f 6e 2c 20 70 6c 61 6e 65 2d 0a 20 20 20 ┆components: function, plane- ┆
0x0ac0…0ae0 20 20 6d 61 73 6b 2c 20 66 69 6c 6c 2d 73 74 79 6c 65 2c 20 66 6f 6e 74 2c 20 73 75 62 77 69 6e ┆ mask, fill-style, font, subwin┆
0x0ae0…0b00 64 6f 77 2d 6d 6f 64 65 2c 20 63 6c 69 70 2d 78 2d 6f 72 69 67 69 6e 2c 0a 20 20 20 20 20 63 6c ┆dow-mode, clip-x-origin, cl┆
0x0b00…0b20 69 70 2d 79 2d 6f 72 69 67 69 6e 2c 20 61 6e 64 20 63 6c 69 70 2d 6d 61 73 6b 2e 20 20 54 68 65 ┆ip-y-origin, and clip-mask. The┆
0x0b20…0b40 79 20 61 6c 73 6f 20 75 73 65 20 74 68 65 73 65 20 47 43 20 6d 6f 64 65 2d 0a 20 20 20 20 20 64 ┆y also use these GC mode- d┆
0x0b40…0b60 65 70 65 6e 64 65 6e 74 20 63 6f 6d 70 6f 6e 65 6e 74 73 3a 20 66 6f 72 65 67 72 6f 75 6e 64 2c ┆ependent components: foreground,┆
0x0b60…0b80 20 62 61 63 6b 67 72 6f 75 6e 64 2c 20 74 69 6c 65 2c 20 73 74 69 70 70 6c 65 2c 0a 20 20 20 20 ┆ background, tile, stipple, ┆
0x0b80…0ba0 20 74 69 6c 65 2d 73 74 69 70 70 6c 65 2d 78 2d 6f 72 69 67 69 6e 2c 20 61 6e 64 20 74 69 6c 65 ┆ tile-stipple-x-origin, and tile┆
0x0ba0…0bc0 2d 73 74 69 70 70 6c 65 2d 79 2d 6f 72 69 67 69 6e 2e 0a 0a 20 20 20 20 20 5f 08 58 5f 08 44 5f ┆-stipple-y-origin. _ X_ D_┆
0x0bc0…0be0 08 72 5f 08 61 5f 08 77 5f 08 54 5f 08 65 5f 08 78 5f 08 74 20 61 6e 64 20 5f 08 58 5f 08 44 5f ┆ r_ a_ w_ T_ e_ x_ t and _ X_ D_┆
0x0be0…0c00 08 72 5f 08 61 5f 08 77 5f 08 54 5f 08 65 5f 08 78 5f 08 74 5f 08 31 5f 08 36 20 63 61 6e 20 67 ┆ r_ a_ w_ T_ e_ x_ t_ 1_ 6 can g┆
0x0c00…0c20 65 6e 65 72 61 74 65 20 5f 08 42 5f 08 61 5f 08 64 5f 08 44 5f 08 72 5f 08 61 5f 08 77 5f 08 61 ┆enerate _ B_ a_ d_ D_ r_ a_ w_ a┆
0x0c20…0c40 5f 08 62 5f 08 6c 5f 08 65 2c 20 5f 08 42 5f 08 61 5f 08 64 5f 08 46 5f 08 6f 5f 08 6e 5f 08 74 ┆_ b_ l_ e, _ B_ a_ d_ F_ o_ n_ t┆
0x0c40…0c60 2c 0a 20 20 20 20 20 5f 08 42 5f 08 61 5f 08 64 5f 08 47 5f 08 43 2c 20 61 6e 64 20 5f 08 42 5f ┆, _ B_ a_ d_ G_ C, and _ B_┆
0x0c60…0c80 08 61 5f 08 64 5f 08 4d 5f 08 61 5f 08 74 5f 08 63 5f 08 68 20 65 72 72 6f 72 73 2e 0a 0a 53 08 ┆ a_ d_ M_ a_ t_ c_ h errors. S ┆
0x0c80…0ca0 53 08 53 08 53 54 08 54 08 54 08 54 52 08 52 08 52 08 52 55 08 55 08 55 08 55 43 08 43 08 43 08 ┆S S ST T T TR R R RU U U UC C C ┆
0x0ca0…0cc0 43 54 08 54 08 54 08 54 55 08 55 08 55 08 55 52 08 52 08 52 08 52 45 08 45 08 45 08 45 53 08 53 ┆CT T T TU U U UR R R RE E E ES S┆
0x0cc0…0ce0 08 53 08 53 0a 20 20 20 20 20 54 68 65 20 5f 08 58 5f 08 54 5f 08 65 5f 08 78 5f 08 74 5f 08 49 ┆ S S The _ X_ T_ e_ x_ t_ I┆
0x0ce0…0d00 5f 08 74 5f 08 65 5f 08 6d 20 61 6e 64 20 5f 08 58 5f 08 54 5f 08 65 5f 08 78 5f 08 74 5f 08 49 ┆_ t_ e_ m and _ X_ T_ e_ x_ t_ I┆
0x0d00…0d20 5f 08 74 5f 08 65 5f 08 6d 5f 08 31 5f 08 36 20 73 74 72 75 63 74 75 72 65 73 20 63 6f 6e 74 61 ┆_ t_ e_ m_ 1_ 6 structures conta┆
0x0d20…0d40 69 6e 3a 0a 0a 20 20 20 20 20 74 79 70 65 64 65 66 20 73 74 72 75 63 74 20 7b 0a 20 20 20 20 20 ┆in: typedef struct { ┆
0x0d40…0d60 20 20 20 20 20 63 68 61 72 20 2a 63 68 61 72 73 3b 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2a ┆ char *chars; /*┆
0x0d60…0d80 20 70 6f 69 6e 74 65 72 20 74 6f 20 73 74 72 69 6e 67 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 ┆ pointer to string */ ┆
0x0d80…0da0 69 6e 74 20 6e 63 68 61 72 73 3b 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2a 20 6e 75 6d 62 ┆int nchars; /* numb┆
0x0da0…0dc0 65 72 20 6f 66 20 63 68 61 72 61 63 74 65 72 73 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 69 6e ┆er of characters */ in┆
0x0dc0…0de0 74 20 64 65 6c 74 61 3b 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2a 20 64 65 6c 74 61 20 ┆t delta; /* delta ┆
0x0de0…0e00 62 65 74 77 65 65 6e 20 73 74 72 69 6e 67 73 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 46 6f 6e ┆between strings */ Fon┆
0x0e00…0e20 74 20 66 6f 6e 74 3b 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2a 20 46 6f 6e 74 20 74 6f ┆t font; /* Font to┆
0x0e20…0e40 20 70 72 69 6e 74 20 69 74 20 69 6e 2c 20 4e 6f 6e 65 20 64 6f 6e 27 74 20 63 68 61 6e 67 65 20 ┆ print it in, None don't change ┆
0x0e40…0e60 2a 2f 0a 20 20 20 20 20 7d 20 58 54 65 78 74 49 74 65 6d 3b 0a 0a 20 20 20 20 20 74 79 70 65 64 ┆*/ } XTextItem; typed┆
0x0e60…0e80 65 66 20 73 74 72 75 63 74 20 7b 0a 20 20 20 20 20 20 20 20 20 20 58 43 68 61 72 32 62 20 2a 63 ┆ef struct { XChar2b *c┆
0x0e80…0ea0 68 61 72 73 3b 20 20 20 20 20 20 20 20 20 20 2f 2a 20 70 6f 69 6e 74 65 72 20 74 6f 20 74 77 6f ┆hars; /* pointer to two┆
0x0ea0…0ec0 2d 62 79 74 65 20 63 68 61 72 61 63 74 65 72 73 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 69 6e ┆-byte characters */ in┆
0x0ec0…0ee0 74 20 6e 63 68 61 72 73 3b 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2a 20 6e 75 6d 62 65 72 ┆t nchars; /* number┆
0x0ee0…0f00 20 6f 66 20 63 68 61 72 61 63 74 65 72 73 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 ┆ of characters */ int ┆
0x0f00…0f20 64 65 6c 74 61 3b 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2a 20 64 65 6c 74 61 20 62 65 ┆delta; /* delta be┆
0x0f20…0f40 74 77 65 65 6e 20 73 74 72 69 6e 67 73 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 46 6f 6e 74 20 ┆tween strings */ Font ┆
0x0f40…0f60 66 6f 6e 74 3b 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2a 20 66 6f 6e 74 20 74 6f 20 70 ┆font; /* font to p┆
0x0f60…0f80 72 69 6e 74 20 69 74 20 69 6e 2c 20 4e 6f 6e 65 20 64 6f 6e 27 74 20 63 68 61 6e 67 65 20 2a 2f ┆rint it in, None don't change */┆
0x0f80…0fa0 0a 20 20 20 20 20 7d 20 58 54 65 78 74 49 74 65 6d 31 36 3b 0a 0a 20 20 20 20 20 49 66 20 74 68 ┆ } XTextItem16; If th┆
0x0fa0…0fc0 65 20 66 6f 6e 74 20 6d 65 6d 62 65 72 20 69 73 20 6e 6f 74 20 5f 08 4e 5f 08 6f 5f 08 6e 5f 08 ┆e font member is not _ N_ o_ n_ ┆
0x0fc0…0fe0 65 2c 20 74 68 65 20 66 6f 6e 74 20 69 73 20 63 68 61 6e 67 65 64 20 62 65 66 6f 72 65 0a 20 20 ┆e, the font is changed before ┆
0x0fe0…1000 20 20 20 70 72 69 6e 74 69 6e 67 20 61 6e 64 20 61 6c 73 6f 20 69 73 20 73 74 6f 72 65 64 20 69 ┆ printing and also is stored i┆
0x1000…1020 6e 20 74 68 65 20 47 43 2e 20 20 49 66 20 61 6e 20 65 72 72 6f 72 20 77 61 73 20 67 65 6e 2d 0a ┆n the GC. If an error was gen- ┆
0x1020…1040 20 20 20 20 20 65 72 61 74 65 64 20 64 75 72 69 6e 67 20 74 65 78 74 20 64 72 61 77 69 6e 67 2c ┆ erated during text drawing,┆
0x1040…1060 20 74 68 65 20 70 72 65 76 69 6f 75 73 20 69 74 65 6d 73 20 6d 61 79 20 68 61 76 65 20 62 65 65 ┆ the previous items may have bee┆
0x1060…1080 6e 0a 20 20 20 20 20 64 72 61 77 6e 2e 20 20 54 68 65 20 62 61 73 65 6c 69 6e 65 20 6f 66 20 74 ┆n drawn. The baseline of t┆
0x1080…10a0 68 65 20 63 68 61 72 61 63 74 65 72 73 20 61 72 65 20 64 72 61 77 6e 20 73 74 61 72 74 69 6e 67 ┆he characters are drawn starting┆
0x10a0…10c0 20 61 74 0a 20 20 20 20 20 74 68 65 20 78 20 61 6e 64 20 79 20 63 6f 6f 72 64 69 6e 61 74 65 73 ┆ at the x and y coordinates┆
0x10c0…10e0 20 74 68 61 74 20 79 6f 75 20 70 61 73 73 20 69 6e 20 74 68 65 20 74 65 78 74 20 64 72 61 77 69 ┆ that you pass in the text drawi┆
0x10e0…1100 6e 67 0a 20 20 20 20 20 66 75 6e 63 74 69 6f 6e 73 2e 0a 0a 20 20 20 20 20 46 6f 72 20 65 78 61 ┆ng functions. For exa┆
0x1100…1120 6d 70 6c 65 2c 20 63 6f 6e 73 69 64 65 72 20 74 68 65 20 62 61 63 6b 67 72 6f 75 6e 64 20 72 65 ┆mple, consider the background re┆
0x1120…1140 63 74 61 6e 67 6c 65 20 64 72 61 77 6e 20 62 79 0a 20 20 20 20 20 5f 08 58 5f 08 44 5f 08 72 5f ┆ctangle drawn by _ X_ D_ r_┆
0x1140…1160 08 61 5f 08 77 5f 08 49 5f 08 6d 5f 08 61 5f 08 67 5f 08 65 5f 08 53 5f 08 74 5f 08 72 5f 08 69 ┆ a_ w_ I_ m_ a_ g_ e_ S_ t_ r_ i┆
0x1160…1180 5f 08 6e 5f 08 67 2e 20 20 49 66 20 79 6f 75 20 77 61 6e 74 20 74 68 65 20 75 70 70 65 72 2d 6c ┆_ n_ g. If you want the upper-l┆
0x1180…11a0 65 66 74 20 63 6f 72 6e 65 72 20 6f 66 20 74 68 65 0a 20 20 20 20 20 62 61 63 6b 67 72 6f 75 6e ┆eft corner of the backgroun┆
0x11a0…11c0 64 20 72 65 63 74 61 6e 67 6c 65 20 74 6f 20 62 65 20 61 74 20 70 69 78 65 6c 20 63 6f 6f 72 64 ┆d rectangle to be at pixel coord┆
0x11c0…11e0 69 6e 61 74 65 20 28 78 2c 79 29 2c 20 70 61 73 73 0a 20 20 20 20 20 74 68 65 20 28 78 2c 79 20 ┆inate (x,y), pass the (x,y ┆
0x11e0…1200 2b 20 61 73 63 65 6e 74 29 20 61 73 20 74 68 65 20 62 61 73 65 6c 69 6e 65 20 6f 72 69 67 69 6e ┆+ ascent) as the baseline origin┆
0x1200…1220 20 63 6f 6f 72 64 69 6e 61 74 65 73 20 74 6f 20 74 68 65 0a 20 20 20 20 20 74 65 78 74 20 66 75 ┆ coordinates to the text fu┆
0x1220…1240 6e 63 74 69 6f 6e 73 2e 20 20 54 68 65 20 61 73 63 65 6e 74 20 69 73 20 74 68 65 20 66 6f 6e 74 ┆nctions. The ascent is the font┆
0x1240…1260 20 61 73 63 65 6e 74 2c 20 61 73 20 67 69 76 65 6e 20 69 6e 0a 20 20 20 20 20 74 68 65 20 5f 08 ┆ ascent, as given in the _ ┆
0x1260…1280 58 5f 08 46 5f 08 6f 5f 08 6e 5f 08 74 5f 08 53 5f 08 74 5f 08 72 5f 08 75 5f 08 63 5f 08 74 20 ┆X_ F_ o_ n_ t_ S_ t_ r_ u_ c_ t ┆
0x1280…12a0 73 74 72 75 63 74 75 72 65 2e 20 20 49 66 20 79 6f 75 20 77 61 6e 74 20 74 68 65 20 6c 6f 77 65 ┆structure. If you want the lowe┆
0x12a0…12c0 72 2d 6c 65 66 74 0a 20 20 20 20 20 63 6f 72 6e 65 72 20 6f 66 20 74 68 65 20 62 61 63 6b 67 72 ┆r-left corner of the backgr┆
0x12c0…12e0 6f 75 6e 64 20 72 65 63 74 61 6e 67 6c 65 20 74 6f 20 62 65 20 61 74 20 70 69 78 65 6c 20 63 6f ┆ound rectangle to be at pixel co┆
0x12e0…1300 6f 72 64 69 6e 61 74 65 0a 20 20 20 20 20 28 78 2c 79 29 2c 20 70 61 73 73 20 74 68 65 20 28 78 ┆ordinate (x,y), pass the (x┆
0x1300…1320 2c 79 20 2d 20 64 65 73 63 65 6e 74 20 2b 20 31 29 20 61 73 20 74 68 65 20 62 61 73 65 6c 69 6e ┆,y - descent + 1) as the baselin┆
0x1320…1340 65 20 6f 72 69 67 69 6e 0a 20 20 20 20 20 63 6f 6f 72 64 69 6e 61 74 65 73 20 74 6f 20 74 68 65 ┆e origin coordinates to the┆
0x1340…1360 20 74 65 78 74 20 66 75 6e 63 74 69 6f 6e 73 2e 20 20 54 68 65 20 64 65 73 63 65 6e 74 20 69 73 ┆ text functions. The descent is┆
0x1360…1380 20 74 68 65 20 66 6f 6e 74 0a 20 20 20 20 20 64 65 73 63 65 6e 74 2c 20 61 73 20 67 69 76 65 6e ┆ the font descent, as given┆
0x1380…13a0 20 69 6e 20 74 68 65 20 5f 08 58 5f 08 46 5f 08 6f 5f 08 6e 5f 08 74 5f 08 53 5f 08 74 5f 08 72 ┆ in the _ X_ F_ o_ n_ t_ S_ t_ r┆
0x13a0…13c0 5f 08 75 5f 08 63 5f 08 74 20 73 74 72 75 63 74 75 72 65 2e 0a 0a 44 08 44 08 44 08 44 49 08 49 ┆_ u_ c_ t structure. D D D DI I┆
0x13c0…13e0 08 49 08 49 41 08 41 08 41 08 41 47 08 47 08 47 08 47 4e 08 4e 08 4e 08 4e 4f 08 4f 08 4f 08 4f ┆ I IA A A AG G G GN N N NO O O O┆
0x13e0…1400 53 08 53 08 53 08 53 54 08 54 08 54 08 54 49 08 49 08 49 08 49 43 08 43 08 43 08 43 53 08 53 08 ┆S S S ST T T TI I I IC C C CS S ┆
0x1400…1420 53 08 53 0a 20 20 20 20 20 5f 08 42 5f 08 61 5f 08 64 5f 08 44 5f 08 72 5f 08 61 5f 08 77 5f 08 ┆S S _ B_ a_ d_ D_ r_ a_ w_ ┆
0x1420…1440 61 5f 08 62 5f 08 6c 5f 08 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 41 20 76 61 6c 75 ┆a_ b_ l_ e A valu┆
0x1440…1460 65 20 66 6f 72 20 61 20 44 72 61 77 61 62 6c 65 20 61 72 67 75 6d 65 6e 74 20 64 6f 65 73 20 6e ┆e for a Drawable argument does n┆
0x1460…1480 6f 74 20 6e 61 6d 65 20 61 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 65 66 69 6e 65 64 ┆ot name a defined┆
0x1480…14a0 20 57 69 6e 64 6f 77 20 6f 72 20 50 69 78 6d 61 70 2e 0a 0a 20 20 20 20 20 5f 08 42 5f 08 61 5f ┆ Window or Pixmap. _ B_ a_┆
0x14a0…14c0 08 64 5f 08 46 5f 08 6f 5f 08 6e 5f 08 74 20 20 20 41 20 76 61 6c 75 65 20 66 6f 72 20 61 20 46 ┆ d_ F_ o_ n_ t A value for a F┆
0x14c0…14e0 6f 6e 74 20 6f 72 20 47 43 6f 6e 74 65 78 74 20 61 72 67 75 6d 65 6e 74 20 64 6f 65 73 20 6e 6f ┆ont or GContext argument does no┆
0x14e0…1500 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6e 61 6d 65 20 61 20 64 65 66 69 6e 65 64 20 ┆t name a defined ┆
0x1500…1520 46 6f 6e 74 2e 0a 0a 20 20 20 20 20 5f 08 42 5f 08 61 5f 08 64 5f 08 47 5f 08 43 20 20 20 20 20 ┆Font. _ B_ a_ d_ G_ C ┆
0x1520…1540 41 20 76 61 6c 75 65 20 66 6f 72 20 61 20 47 43 6f 6e 74 65 78 74 20 61 72 67 75 6d 65 6e 74 20 ┆A value for a GContext argument ┆
0x1540…1560 64 6f 65 73 20 6e 6f 74 20 6e 61 6d 65 20 61 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 ┆does not name a d┆
0x1560…1580 65 66 69 6e 65 64 20 47 43 6f 6e 74 65 78 74 2e 0a 0a 20 20 20 20 20 5f 08 42 5f 08 61 5f 08 64 ┆efined GContext. _ B_ a_ d┆
0x1580…15a0 5f 08 4d 5f 08 61 5f 08 74 5f 08 63 5f 08 68 20 20 41 6e 20 5f 08 49 5f 08 6e 5f 08 70 5f 08 75 ┆_ M_ a_ t_ c_ h An _ I_ n_ p_ u┆
0x15a0…15c0 5f 08 74 5f 08 4f 5f 08 6e 5f 08 6c 5f 08 79 20 77 69 6e 64 6f 77 20 69 73 20 75 73 65 64 20 61 ┆_ t_ O_ n_ l_ y window is used a┆
0x15c0…15e0 73 20 61 20 44 72 61 77 61 62 6c 65 2e 0a 0a 53 08 53 08 53 08 53 45 08 45 08 45 08 45 45 08 45 ┆s a Drawable. S S S SE E E EE E┆
0x15e0…1600 08 45 08 45 20 41 08 41 08 41 08 41 4c 08 4c 08 4c 08 4c 53 08 53 08 53 08 53 4f 08 4f 08 4f 08 ┆ E E A A A AL L L LS S S SO O O ┆
0x1600…1620 4f 0a 20 20 20 20 20 58 44 72 61 77 49 6d 61 67 65 53 74 72 69 6e 67 28 33 58 31 31 29 2c 20 58 ┆O XDrawImageString(3X11), X┆
0x1620…1640 44 72 61 77 53 74 72 69 6e 67 28 33 58 31 31 29 2c 20 58 4c 6f 61 64 46 6f 6e 74 28 33 58 31 31 ┆DrawString(3X11), XLoadFont(3X11┆
0x1640…1660 29 0a 20 20 20 20 20 5f 08 58 5f 08 6c 5f 08 69 5f 08 62 20 2d 20 5f 08 43 20 5f 08 4c 5f 08 61 ┆) _ X_ l_ i_ b - _ C _ L_ a┆
0x1660…1680 5f 08 6e 5f 08 67 5f 08 75 5f 08 61 5f 08 67 5f 08 65 20 5f 08 58 20 5f 08 49 5f 08 6e 5f 08 74 ┆_ n_ g_ u_ a_ g_ e _ X _ I_ n_ t┆
0x1680…16a0 5f 08 65 5f 08 72 5f 08 66 5f 08 61 5f 08 63 5f 08 65 0a 0a 0a 0a 0a 0a 0a 41 75 67 75 73 74 20 ┆_ e_ r_ f_ a_ c_ e August ┆
0x16a0…16c0 31 39 39 31 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆1991 ┆
0x16c0…16e0 20 54 58 20 50 72 6f 67 72 61 6d 6d 65 72 27 73 20 52 65 66 65 72 65 6e 63 65 0a 0a 0a 0a 0a 0a ┆ TX Programmer's Reference ┆
0x16e0…1700 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a ┆ ┆
0x1700…1716 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a ┆ ┆