Character sets¶
Character constants can be used to change the font style in TEXT
(alphasign.text.Text) and STRING (alphasign.string.String)
files.
Character sets¶
The following character set constants are defined:
FIVE_HIGH_STDFIVE_STROKESEVEN_HIGH_STDSEVEN_STROKESEVEN_HIGH_FANCYTEN_HIGH_STDSEVEN_SHADOWFULL_HEIGHT_FANCYFULL_HEIGHT_STDSEVEN_SHADOW_FANCYFIVE_WIDESEVEN_WIDESEVEN_FANCY_WIDEWIDE_STROKE_FIVE
The following character sets are available only on Alpha 2.0 and 3.0 protocols:
FIVE_HIGH_CUSTSEVEN_HIGH_CUSTTEN_HIGH_CUSTFIFTEEN_HIGH_CUST
Character attributes¶
The following character attribute constants are defined:
WIDE_ONWIDE_OFFDOUBLE_WIDE_ONDOUBLE_WIDE_OFFDOUBLE_HIGH_ONDOUBLE_HIGH_OFFTRUE_DESCENDERS_ONTRUE_DESCENDERS_OFFFIXED_WIDTH_ONFIXED_WIDTH_OFFFANCY_ONFANCY_OFFAUXILIARY_PORT_ON– Series 4000 & 7000 signs only.AUXILIARY_PORT_OFFSHADOW_CHARACTERS_ON– Betabrite model 1036 and AlphaPriemere 9000 signs only.SHADOW_CHARACTERS_OFF
Character spacing¶
The following character spacing constants are defined:
PROPORTIONAL– defaultFIXED_WIDTH– fixed width left justified
Examples¶
Make a text file using the FIVE_WIDE charset:
msg = alphasign.Text("%sthis is wide" % alphasign.charsets.FIVE_WIDE,
label="A")