public class SoFontStyle extends SoFont
Note: The "name" field inherited from SoFont
is ignored by SoFontStyle
. This node maps font family and style to a specific predefined font, according to the OS in use. Use the getFontName()
method to get the actual font name that will be used.
On Windows, the font families are mapped as follows:
<TABLE border=0 cellspacing=0 cellpadding=5> <TR><TD valign=_top> SERIF <TD valign=_top> Times New Roman <TR><TD valign=_top> SANS <TD valign=_top> Arial <TR><TD valign=_top> TYPEWRITER <TD valign=_top> Courier New </TABLE>
File format/default:
FontStyle {
name | "defaultFont" |
size | 10 |
family | SERIF |
style | NONE |
renderStyle | POLYGON |
Action behavior:
SoGLRenderAction
, SoCallbackAction
, SoGetBoundingBoxAction
, SoRayPickAction
Sets the font family and style in the current traversal state. Sets: SoFontNameElement
, SoFontSizeElement
,
See also:
Modifier and Type | Class and Description |
---|---|
static class |
SoFontStyle.Families
Font style family.
|
static class |
SoFontStyle.Styles |
SoFont.RenderStyles
SoNode.RenderModes
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFEnum<SoFontStyle.Families> |
family
Specifies the family of font to use (which determines the font name according to table above).
|
SoSFBitMask<SoFontStyle.Styles> |
style
Specifies style of the chosen font.
|
name, renderStyle, size
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoFontStyle()
Creates a font style node with default settings.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFontName()
Returns the font name used by this node based on the settings of family and style.
|
addFontPaths, clearFontNameCache, enableJapaneseSF, enableJapaneseSF, getCurrNumFontCaches, getFontPaths, getNumFontCaches, isAvailableFont, isJapaneseSFEnabled, setFontPaths, setNumFontCaches
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderEngineMode, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
getNativeResourceHandle
public final SoSFEnum<SoFontStyle.Families> family
public final SoSFBitMask<SoFontStyle.Styles> style
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com