Difference between revisions of "FontBase"

From GiderosMobile
(----)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
 
<!-- GIDEROSOBJ:FontBase -->
+
'''Supported platforms:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]][[File:Platform html5.png]][[File:Platform winrt.png]][[File:Platform win32.png]]<br/>
'''<translate>Supported platforms</translate>:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]][[File:Platform html5.png]][[File:Platform winrt.png]][[File:Platform win32.png]]<br/>
+
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
'''Inherits from:''' [[Object]]<br/>
'''<translate>Inherits from</translate>:''' [[Special:MyLanguage/Object|Object]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate><br />
+
[[FontBase]] is the base class for [[Font]] and [[TTFont]] classes.
[[Special:MyLanguage/FontBase|FontBase]] is the base class for [[Special:MyLanguage/Font|Font]] and [[Special:MyLanguage/TTFont|TTFont]] classes.<br />
+
 
<br /></translate>
 
 
{|-
 
{|-
 +
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
=== <translate>Methods</translate> ===
+
 
[[Special:MyLanguage/FontBase:getAdvanceX|FontBase:getAdvanceX]] <br/><!-- GIDEROSMTD:FontBase:getAdvanceX(text,letterSpacing,size)  -->
+
=== Methods ===
[[Special:MyLanguage/FontBase:getAscender|FontBase:getAscender]] ''<translate>returns the ascender of the font</translate>''<br/><!-- GIDEROSMTD:FontBase:getAscender() returns the ascender of the font -->
+
[[FontBase:getAdvanceX]] <br/>
[[Special:MyLanguage/FontBase:getBounds|FontBase:getBounds]] ''<translate>returns the tight bounding rectangle of the characters in the string specified by text</translate>''<br/><!-- GIDEROSMTD:FontBase:getBounds(text) returns the tight bounding rectangle of the characters in the string specified by text -->
+
[[FontBase:getAscender]] ''returns the ascender of the font''<br/>
[[Special:MyLanguage/FontBase:getCharIndexAtOffset|FontBase:getCharIndexAtOffset]] <br/><!-- GIDEROSMTD:FontBase:getCharIndexAtOffset(text,offset,letterSpacing,size)  -->
+
[[FontBase:getBounds]] ''returns the tight bounding rectangle of the characters in the string specified by text''<br/>
[[Special:MyLanguage/FontBase:getLineHeight|FontBase:getLineHeight]] ''<translate>returns the distance from one base line to the next</translate>''<br/><!-- GIDEROSMTD:FontBase:getLineHeight() returns the distance from one base line to the next -->
+
[[FontBase:getCharIndexAtOffset]] <br/>
[[Special:MyLanguage/FontBase:layoutText|FontBase:layoutText]] ''<translate>compute layout of text with given constraints</translate>''<br/><!-- GIDEROSMTD:FontBase:layoutText(text,width,height,flags,letterSpacing,lineSpacing,tabSpace,breakChar) compute layout of text with given constraints -->
+
[[FontBase:getLineHeight]] ''returns the distance from one base line to the next''<br/>
 +
[[FontBase:layoutText]] ''compute layout of text with given constraints''<br/>
 +
 
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
=== <translate>Events</translate> ===
+
 
=== <translate>Constants</translate> ===
+
=== Events ===
[[Special:MyLanguage/FontBase.TLF_BOTTOM|FontBase.TLF_BOTTOM]]<br/><!-- GIDEROSCST:FontBase.TLF_BOTTOM TLF_BOTTOM-->
+
 
[[Special:MyLanguage/FontBase.TLF_BREAKWORDS|FontBase.TLF_BREAKWORDS]]<br/><!-- GIDEROSCST:FontBase.TLF_BREAKWORDS TLF_BREAKWORDS-->
+
=== Constants ===
[[Special:MyLanguage/FontBase.TLF_CENTER|FontBase.TLF_CENTER]]<br/><!-- GIDEROSCST:FontBase.TLF_CENTER TLF_CENTER-->
+
[[FontBase.TLF_BOTTOM]]<br/>
[[Special:MyLanguage/FontBase.TLF_JUSTIFIED|FontBase.TLF_JUSTIFIED]]<br/><!-- GIDEROSCST:FontBase.TLF_JUSTIFIED TLF_JUSTIFIED-->
+
[[FontBase.TLF_BREAKWORDS]]<br/>
[[Special:MyLanguage/FontBase.TLF_LEFT|FontBase.TLF_LEFT]]<br/><!-- GIDEROSCST:FontBase.TLF_LEFT TLF_LEFT-->
+
[[FontBase.TLF_CENTER]]<br/>
[[Special:MyLanguage/FontBase.TLF_NOWRAP|FontBase.TLF_NOWRAP]]<br/><!-- GIDEROSCST:FontBase.TLF_NOWRAP TLF_NOWRAP-->
+
[[FontBase.TLF_JUSTIFIED]]<br/>
[[Special:MyLanguage/FontBase.TLF_REF_BASELINE|FontBase.TLF_REF_BASELINE]]<br/><!-- GIDEROSCST:FontBase.TLF_REF_BASELINE TLF_REF_BASELINE-->
+
[[FontBase.TLF_LEFT]]<br/>
[[Special:MyLanguage/FontBase.TLF_REF_BOTTOM|FontBase.TLF_REF_BOTTOM]]<br/><!-- GIDEROSCST:FontBase.TLF_REF_BOTTOM TLF_REF_BOTTOM-->
+
[[FontBase.TLF_NOWRAP]]<br/>
[[Special:MyLanguage/FontBase.TLF_REF_MIDDLE|FontBase.TLF_REF_MIDDLE]]<br/><!-- GIDEROSCST:FontBase.TLF_REF_MIDDLE TLF_REF_MIDDLE-->
+
[[FontBase.TLF_REF_BASELINE]]<br/>
[[Special:MyLanguage/FontBase.TLF_REF_ASCENT|FontBase.TLF_REF_ASCENT]]<br/><!-- GIDEROSCST:FontBase.TLF_REF_ASCENT TLF_REF_ASCENT-->
+
[[FontBase.TLF_REF_BOTTOM]]<br/>
[[Special:MyLanguage/FontBase.TLF_REF_DESCENT|FontBase.TLF_REF_DESCENT]]<br/><!-- GIDEROSCST:FontBase.TLF_REF_DESCENT TLF_REF_DESCENT-->
+
[[FontBase.TLF_REF_MIDDLE]]<br/>
[[Special:MyLanguage/FontBase.TLF_REF_MEDIAN|FontBase.TLF_REF_MEDIAN]]<br/><!-- GIDEROSCST:FontBase.TLF_REF_MEDIAN TLF_REF_MEDIAN-->
+
[[FontBase.TLF_REF_ASCENT]]<br/>
[[Special:MyLanguage/FontBase.TLF_REF_TOP|FontBase.TLF_REF_TOP]]<br/><!-- GIDEROSCST:FontBase.TLF_REF_TOP TLF_REF_TOP-->
+
[[FontBase.TLF_REF_DESCENT]]<br/>
[[Special:MyLanguage/FontBase.TLF_RIGHT|FontBase.TLF_RIGHT]]<br/><!-- GIDEROSCST:FontBase.TLF_RIGHT TLF_RIGHT-->
+
[[FontBase.TLF_REF_MEDIAN]]<br/>
[[Special:MyLanguage/FontBase.TLF_TOP|FontBase.TLF_TOP]]<br/><!-- GIDEROSCST:FontBase.TLF_TOP TLF_TOP-->
+
[[FontBase.TLF_REF_TOP]]<br/>
[[Special:MyLanguage/FontBase.TLF_VCENTER|FontBase.TLF_VCENTER]]<br/><!-- GIDEROSCST:FontBase.TLF_VCENTER TLF_VCENTER-->
+
[[FontBase.TLF_RIGHT]]<br/>
[[Special:MyLanguage/FontBase.TLF_RTL|FontBase.TLF_RTL]]<br/><!-- GIDEROSCST:FontBase.TLF_RTL TLF_RTL-->
+
[[FontBase.TLF_TOP]]<br/>
[[Special:MyLanguage/FontBase.TLF_LTR|FontBase.TLF_LTR]]<br/><!-- GIDEROSCST:FontBase.TLF_LTR TLF_LTR-->
+
[[FontBase.TLF_VCENTER]]<br/>
[[Special:MyLanguage/FontBase.TLF_NOBIDI|FontBase.TLF_NOBIDI]]<br/><!-- GIDEROSCST:FontBase.TLF_NOBIDI TLF_NOBIDI-->
+
[[FontBase.TLF_RTL]]<br/>
[[Special:MyLanguage/FontBase.TLF_NOSHAPING|FontBase.TLF_NOSHAPING]]<br/><!-- GIDEROSCST:FontBase.TLF_NOSHAPING TLF_NOSHAPING-->
+
[[FontBase.TLF_LTR]]<br/>
 +
[[FontBase.TLF_NOBIDI]]<br/>
 +
[[FontBase.TLF_NOSHAPING]]<br/>
 +
 
 
|}
 
|}
 +
 +
----
 +
{{Special:PrefixIndex/FontBase:}}
 +
<br/>
 +
 +
{{Special:PrefixIndex/FontBase.TLF}}
 +
<br/>

Revision as of 22:14, 2 December 2019