Difference between revisions of "Font:hasGlyphs"
(Created page) |
(Renamed and upgraded) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{newin|[[0.9.0]]|090|type=function}} | {{newin|[[0.9.0]]|090|type=function}} | ||
− | Gets whether the | + | Gets whether the Font can render a character or string. |
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | hasglyphs = Font:hasGlyphs( text ) | |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
− | {{param|string| | + | {{param|string|text|A UTF-8 encoded unicode string.}} |
=== Returns === | === Returns === | ||
− | {{param|boolean|hasglyph|Whether the font can render the | + | {{param|boolean|hasglyph|Whether the font can render all the UTF-8 characters in the string.}} |
+ | |||
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | hasglyphs = Font:hasGlyphs( character1, character2, ... ) | |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
− | {{param| | + | {{param|string|character1|A unicode character.}} |
+ | {{param|string|character2|Another unicode character.}} | ||
=== Returns === | === Returns === | ||
− | {{param|boolean|hasglyph|Whether the font can render the | + | {{param|boolean|hasglyph|Whether the font can render all the glyphs represented by the characters.}} |
+ | |||
+ | == Function == | ||
+ | === Synopsis === | ||
+ | <source lang="lua"> | ||
+ | hasglyphs = Font:hasGlyphs( codepoint1, codepoint2, ... ) | ||
+ | </source> | ||
+ | === Arguments === | ||
+ | {{param|number|codepoint1|A unicode codepoint number.}} | ||
+ | {{param|number|codepoint2|Another unicode codepoint number.}} | ||
+ | === Returns === | ||
+ | {{param|boolean|hasglyph|Whether the font can render all the glyphs represented by the codepoint numbers.}} | ||
== See Also == | == See Also == | ||
* [[parent::Font]] | * [[parent::Font]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | {{#set:Description=Gets whether the | + | {{#set:Description=Gets whether the Font can render a character or string.}} |
== Other Languages == | == Other Languages == | ||
− | {{i18n|Font: | + | {{i18n|Font:hasGlyphs}} |
Latest revision as of 00:52, 29 October 2013
Available since LÖVE 0.9.0 |
This function is not supported in earlier versions. |
Gets whether the Font can render a character or string.
Contents
Function
Synopsis
hasglyphs = Font:hasGlyphs( text )
Arguments
string text
- A UTF-8 encoded unicode string.
Returns
boolean hasglyph
- Whether the font can render all the UTF-8 characters in the string.
Function
Synopsis
hasglyphs = Font:hasGlyphs( character1, character2, ... )
Arguments
Returns
boolean hasglyph
- Whether the font can render all the glyphs represented by the characters.
Function
Synopsis
hasglyphs = Font:hasGlyphs( codepoint1, codepoint2, ... )
Arguments
Returns
boolean hasglyph
- Whether the font can render all the glyphs represented by the codepoint numbers.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info