views:

80

answers:

0

I'm trying to switch back and forth between an embedded font (used for English-language characters) and the _sans system font (used to display Chinese characters) in an input field.

I'm looking at the charCode of the typed-in character, prior to displaying it, and determining the appropriate font to use, and setting the defaultTextFormat of the field, accordingly.

Switching between formats that use fonts defined in CSS (embedded fonts) works just fine. But I can't define a system font in CSS - sort of the nature of system fonts, I guess.