public class GlyphLayout
extends com.badlogic.gdx.graphics.g2d.GlyphLayout
| Modifier and Type | Class and Description |
|---|---|
class |
GlyphLayout.GlyphPosition |
| Constructor and Description |
|---|
GlyphLayout() |
GlyphLayout(com.badlogic.gdx.graphics.g2d.BitmapFont font,
java.lang.CharSequence str) |
GlyphLayout(com.badlogic.gdx.graphics.g2d.BitmapFont font,
java.lang.CharSequence str,
com.badlogic.gdx.graphics.Color color,
float targetWidth,
int halign,
boolean wrap) |
GlyphLayout(com.badlogic.gdx.graphics.g2d.BitmapFont font,
java.lang.CharSequence str,
int start,
int end,
com.badlogic.gdx.graphics.Color color,
float targetWidth,
int halign,
boolean wrap,
java.lang.String truncate) |
| Modifier and Type | Method and Description |
|---|---|
static GlyphLayout.GlyphPosition |
calculateFirstRenderPositionOfWord(com.badlogic.gdx.graphics.g2d.BitmapFont font,
java.lang.String sentence,
java.lang.String word,
float targetWidth,
int halign,
boolean wrap)
Returns the first render position of a word within a given sentence (case-sensitive)
|
public GlyphLayout()
public GlyphLayout(com.badlogic.gdx.graphics.g2d.BitmapFont font,
java.lang.CharSequence str)
public GlyphLayout(com.badlogic.gdx.graphics.g2d.BitmapFont font,
java.lang.CharSequence str,
com.badlogic.gdx.graphics.Color color,
float targetWidth,
int halign,
boolean wrap)
public GlyphLayout(com.badlogic.gdx.graphics.g2d.BitmapFont font,
java.lang.CharSequence str,
int start,
int end,
com.badlogic.gdx.graphics.Color color,
float targetWidth,
int halign,
boolean wrap,
java.lang.String truncate)
public static GlyphLayout.GlyphPosition calculateFirstRenderPositionOfWord(com.badlogic.gdx.graphics.g2d.BitmapFont font, java.lang.String sentence, java.lang.String word, float targetWidth, int halign, boolean wrap)
font - The BitmapFont used to render the sentencesentence - The sentence to searchword - The word to search fortargetWidth - The target render widthhalign - The Align valuewrap - True if the text should wrap when exceeding the targetWidth