Package: pumpkin.swf

UnityTTFBitmapTextField


Description

[pro] Unity TTF Font TextField implementation

TTF Bitmap rendering

Auto-scaling to screenspace.


Constructors

UnityTTFBitmapTextField


Functions

updateDirtyFontsBeforeRender

forceRenderAllTTFTextFields

createTTFFont

createTTFFontFromIndexAsset

registerAllFonts

registerAllFonts

forceRenderTTF

updateFrame

setAssetInfo

doNonScaledFontSize

forceRender

getCacheUnityTTFGlyph


Variables

debugUnityFontRegister

RUNTIME_TTF_RESOURCEDIR

globalEnableDynamicRender

globalEnableAutoSizePointSizeToScreenPixels

enableAppResumeFontCacheRefresh

Force TTF font refresh when application resumes.

defaultTTFTextFieldPadding

Default ttf font pixel offset for text.

isTTF


Inherited members

Functions

setAssetInfo

clone

[alpha] Returns cloned copy including its state and text formatting ( not parented )

clearCharColors

[dev] Clear font char colors.

addCharColor

[dev] Set font char colors for a given range, this is addivie so will leak memory unless clearCharColors() is called.

appendText

Append text.

getTextContainer

createBitmapFont

createBitmapFont

setAssetInfo

clone

[alpha] Returns cloned copy including its state and text formatting ( not parented )

debugSetSelection

getGlyph

Get the GlyphInfo character information for a given character in the current font of the defaultTextFormat.

createGlyph

Create new GlyphInfo.

appendText

Append text.


Variables

enableMissingCharacterWarning

enableDeprecialtedTextWrapping

[dev] Non long word wrapping, useful for pre 1.1 uniswf projects.

globalPixelSnapping

[dev] Global enable pixel snapping on bitmap textfields.

globalPixelSnapMinSize

[dev] Global pixel snapping trigger, if point size is <= globalPixelSnapMinSize then pixel snapping will be used. 0 ( dev default) will disable this feature.

enableAssetInfoFallback

[dev] Font fallack when loading from swf, will try to search font name if bmp font asset is not found.

enableWarnings

[dev] Enable wanring log for missing symbols etc.

defaultBitmapTextFieldPadding

Default bitmap font pixel offset for text.

pixelSnapping

bitmapFontAssetInfo

autoInputScroll

Auto scroll when inputting text.

localizationName

Localization name eg.

hasFilters

Indicates if the textfield has any filters.

PASSWORD_CHAR

Default password mask character.

profilerSettings

Global textfield profile setting.

text

Indicates the displayed text contents.

kerningOverride

[alpha][internal] Override global kerning Note: should be implemented in textFormat.

align

[alpha] Set text align. Note: should be implemented in textFormat.

textFormat

Set text format.

type

Indicates the TextField type, see TextFieldType for valid enumerations.

maxScrollH

Indicates the maximum value of the scrollV.

maxScrollV

Indicates the maximum value of the scrollV.

scrollV

Indicates the vertical scroll position of the text.

scrollH

Indicates the horizontal scroll position of the text.

multiline

Enable multi-line textfield.

cursor

Indicates the input cursor to draw.

maxChars

Indicates the max number of characters the TextField accepts.

validChars

Indicates valid characters allowed in the TextField.

numLines

Get the number of lines, if word wrapping is enabled this may increase.

displayAsPassword

Indicates if the text contents should be displayed as a password.

width

height

isTTF