ParallelGraphics
Home  »  Developer Zone  »  Products  »  Cortona VRML Client  »  VRML Extensions  »  FontStyle
Up to VRML Extensions

AdvancedAppearance 

Animated GIF 

BumpMap 

Collision Detection 

CortonaExtrusion 

CubeEnvironment 

DirectX 9.0 Shaders 

Drag & Drop 

EventUtilities 

Flash animations 

FlashMovie 

FontStyle 

Inline Extension 

Interpolator Nodes 

Keyboard Input 

Layers and 2D Nodes 

MipMap 

NavigationInfo 

NURBS 

OrderedGroup 

Panel and HTMLText 

QuickTime 

SFVec2f Interpolator 

SphereEnvironment 

Splines 

Three-Dimensional Text 

TextureTransform3 

TransformSensor 

ZGroup 


Subscribe to Newsletter
 


Google Searchsite search:

 

%(domain)s %(domain)s
Install Cortona VRML Client!

Outline 3D

Try RobinZone!


FontStyle
Enhanced support for the FontStyle node
Scene size: 928bytes

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 symbolMS Charset ValueMS Charset NameLanguage
"ar""178"ARABIC_CHARSETArabic
"el""161"GREEK_CHARSETGreek
"he""177"HEBREW_CHARSETHebrew
"ja""128"SHIFTJIS_CHARSETJapanese
"ko""129"HANGUL_CHARSETKorean
"zh""136"CHINESEBIG5_CHARSET Chinese
"ru""204"RUSSIAN_CHARSETRussian
"tr""162"TURKISH_CHARSETTurkish
no"238"EE_CHARSETEastern Europe
no"2"SIMBOL_CHARSETSymbol 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.





Last updated: Sat, 19 Jul 2008
© 2000-2008 ParallelGraphics. All rights reserved. Terms of use.