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_STD
  • FIVE_STROKE
  • SEVEN_HIGH_STD
  • SEVEN_STROKE
  • SEVEN_HIGH_FANCY
  • TEN_HIGH_STD
  • SEVEN_SHADOW
  • FULL_HEIGHT_FANCY
  • FULL_HEIGHT_STD
  • SEVEN_SHADOW_FANCY
  • FIVE_WIDE
  • SEVEN_WIDE
  • SEVEN_FANCY_WIDE
  • WIDE_STROKE_FIVE

The following character sets are available only on Alpha 2.0 and 3.0 protocols:

  • FIVE_HIGH_CUST
  • SEVEN_HIGH_CUST
  • TEN_HIGH_CUST
  • FIFTEEN_HIGH_CUST

Character attributes

The following character attribute constants are defined:

  • WIDE_ON
  • WIDE_OFF
  • DOUBLE_WIDE_ON
  • DOUBLE_WIDE_OFF
  • DOUBLE_HIGH_ON
  • DOUBLE_HIGH_OFF
  • TRUE_DESCENDERS_ON
  • TRUE_DESCENDERS_OFF
  • FIXED_WIDTH_ON
  • FIXED_WIDTH_OFF
  • FANCY_ON
  • FANCY_OFF
  • AUXILIARY_PORT_ON – Series 4000 & 7000 signs only.
  • AUXILIARY_PORT_OFF
  • SHADOW_CHARACTERS_ON – Betabrite model 1036 and AlphaPriemere 9000 signs only.
  • SHADOW_CHARACTERS_OFF

Character spacing

The following character spacing constants are defined:

  • PROPORTIONAL – default
  • FIXED_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")