Attributes of Character String Primitives

Attributes of the character string primitives contained in CHARBUNDLE are as follows:

When an application creates a presentation space, the character string attributes are set to the default values shown in the following table.

Character String Attribute Default Values

┌────────────┬────────────────────────┬──────────────────────────────────┐│Attribute   │Default Value           │Function that Redefines Attribute │
├────────────┼────────────────────────┼──────────────────────────────────┤
│Set         │LCID_DEFAULT            │GpiSetCharSet                     │
├────────────┼────────────────────────┼──────────────────────────────────┤
│Mode        │CM_MODE1                │GpiSetCharMode                    │
├────────────┼────────────────────────┼──────────────────────────────────┤
│Cell        │Outline font - Defined  │GpiSetCharBox                     │
│            │by device               │                                  │
│            │Image font - Defined by │                                  │
│            │font                    │                                  │
├────────────┼────────────────────────┼──────────────────────────────────┤
│Angle       │(1,0)                   │GpiSetCharAngle                   │
├────────────┼────────────────────────┼──────────────────────────────────┤
│Shear       │(0,1)                   │GpiSetCharShear                   │
├────────────┼────────────────────────┼──────────────────────────────────┤
│Direction   │Left to right           │GpiSetCharDirection               │
├────────────┼────────────────────────┼──────────────────────────────────┤
│Text        │Left                    │GpiSetTextAlignment               │
│alignment   │                        │                                  │
├────────────┼────────────────────────┼──────────────────────────────────┤
│Extra       │0                       │GpiSetCharExtra                   │
├────────────┼────────────────────────┼──────────────────────────────────┤
│Break extra │0                       │GpiSetCharBreakExtra              │
├────────────┼────────────────────────┼──────────────────────────────────┤
│Foreground  │Black                   │GpiSetAttrs(CBB_COLOR)            │
│color       │                        │                                  │
├────────────┼────────────────────────┼──────────────────────────────────┤
│Background  │Clear                   │GpiSetAttrs(CBB_BACK_COLOR)       │
│color       │                        │                                  │
├────────────┼────────────────────────┼──────────────────────────────────┤
│Foreground  │Overpaint               │GpiSetAttrs(CBB_MIX_MODE)         │
│mix         │                        │                                  │
├────────────┼────────────────────────┼──────────────────────────────────┤
│Background  │Leave alone             │GpiSetAttrs(CBB_BACK_MIX_MODE)    │
│mix         │                        │                                  │
└────────────┴────────────────────────┴──────────────────────────────────┘

Current character attributes take effect when you send graphics characters to an output device. They have no effect at the time you define a logical font.


[Back: About Character String Primitives]
[Next: Character Set]