public class SoFontStyle extends SoFont
This node was implemented to support VRML 1.0. Generally you should use SoFont
. If you are using VRML 2.0, you should use SoVRMLFontStyle
rather than this node.
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:
SERIF | Times New Roman |
SANS | Arial |
TYPEWRITER | Courier New |
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
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
static int |
BOLD
Deprecated.
Use
SoFontStyle.Styles.BOLD instead. |
SoSFEnum<SoFontStyle.Families> |
family
Specifies the family of font to use (which determines the font name according to table above).
|
static int |
ITALIC
Deprecated.
Use
SoFontStyle.Styles.ITALIC instead. |
static int |
NONE
Deprecated.
Use
SoFontStyle.Styles.NONE instead. |
static int |
SANS
Deprecated.
Use
SoFontStyle.Families.SANS instead. |
static int |
SERIF
Deprecated.
Use
SoFontStyle.Families.SERIF instead. |
SoSFBitMask<SoFontStyle.Styles> |
style
Specifies style of the chosen font.
|
static int |
TYPEWRITER
Deprecated.
Use
SoFontStyle.Families.TYPEWRITER instead. |
name, POLYGON, POLYGON_AND_OUTLINE, renderStyle, size, TEXTURE, TEXTURE_DELAYED
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, enableMCSJapaneseSF, enableMCSJapaneseSF, getCurrNumFontCaches, getFontPaths, getNumFontCaches, isAvailableFont, isJapaneseSFEnabled, isMCSJapaneseSFEnabled, setFontPaths, setNumFontCaches
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, 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, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public static final int SERIF
SoFontStyle.Families.SERIF
instead.@Deprecated public static final int SANS
SoFontStyle.Families.SANS
instead.@Deprecated public static final int TYPEWRITER
SoFontStyle.Families.TYPEWRITER
instead.@Deprecated public static final int NONE
SoFontStyle.Styles.NONE
instead.@Deprecated public static final int BOLD
SoFontStyle.Styles.BOLD
instead.@Deprecated public static final int ITALIC
SoFontStyle.Styles.ITALIC
instead.public final SoSFEnum<SoFontStyle.Families> family
public final SoSFBitMask<SoFontStyle.Styles> style
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com