Asian Application Developer's Guide

Traditional Chinese Scalable Fonts

The scalable fonts corresponding to CNS 11643 can be also be accessed from the X side by calling XCreateFontSet. For example, the following code creates a font set consisting of scalable Lucida fonts scaled to 33 pixels, and scalable Ming-Light Chinese fonts for planes 1, 2, and 3 scaled to 33 points.

fs = XCreateFontSet(display,
       "-b&h-lucida-medium-r-normal-sans-33-*-*-*-p-*-iso8859-1,\
       -dynalab-ming-light-r-normal--*-330-*-*-m-*-cns11643-1,\
       -dynalab-ming-light-r-normal--*-330-*-*-m-*-cns11643-2,\
       -dynalab-ming-light-r-normal--*-330-*-*-m-*-cns11643-3",
       &missing_ptr,
       &missing_count,
       &def_string);