Enhanced support for the FontStyle node
Family
As well as specifying the font family rendering techniques, Cortona 3.1 allows the developer to select a specific font based on the font name. You can incorporate a flat text string object into your VRML world and format it with any True Type font installed in your Windows system. For example, family "Times New Roman".
...
geometry Text3D {
string ["ß"]
fontStyle FontStyle {
justify ["MIDDLE", "MIDDLE"]
family [ "Verdana", "Arial", "Helvetica" ]
language "238"
style "BOLD"
size 4
}
creaseAngle 1.5
depth 0.5
}
...
Language
The language field provides a proper language attribute of the text string. The following table represents codes for the representation of names of languages that Cortona supports. Both two-letter symbol and character set specify the language to use:
| Two-letter symbol | MS Charset Value | MS Charset Name | Language |
|
| "ar" | "178" | ARABIC_CHARSET | Arabic |
| "el" | "161" | GREEK_CHARSET | Greek |
| "he" | "177" | HEBREW_CHARSET | Hebrew |
| "ja" | "128" | SHIFTJIS_CHARSET | Japanese |
| "ko" | "129" | HANGUL_CHARSET | Korean |
| "zh" | "136" | CHINESEBIG5_CHARSET | Chinese |
| "ru" | "204" | RUSSIAN_CHARSET | Russian |
| "tr" | "162" | TURKISH_CHARSET | Turkish |
| no | "238" | EE_CHARSET | Eastern Europe |
| no | "2" | SIMBOL_CHARSET | Symbol fonts |
Your can also use any truly numerical value for the Microsoft character set even if it is not listed in the table.
For the multilingual support the string field in the Text node should contain text strings that are specified in UTF-8. Use ParallelGraphics' ASCII to UTF8 Converter 1.0 to translate texts into UTF8 format.
|