##### Views

- Page
- Discussion
- View source
- History

# Font:hasGlyphs

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.

## 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

`string character1`
  A unicode character.
`string character2`
  Another unicode character.

### Returns

`boolean hasglyph`
  Whether the font can render all the glyphs represented by the characters.

## Function

### Synopsis

hasglyphs = Font:hasGlyphs( codepoint1, codepoint2, ... )

### Arguments

`number codepoint1`
  A unicode codepoint number.
`number codepoint2`
  Another unicode codepoint number.

### Returns

`boolean hasglyph`
  Whether the font can render all the glyphs represented by the codepoint numbers.

## See Also

- Font

## 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

Retrieved from "https://www.love2d.org/wiki/Font:hasGlyphs"
Categories: Templates | Functions

##### Personal tools

- Log in

##### Search

##### Toolbox

- What links here
- Related changes
- Special pages
- Printable version
- Permanent link
- Browse properties