Class BlockUtils
java.lang.Object
com.github.tommyettinger.textra.utils.BlockUtils
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final float[][]
static final float
static final float
static final float
static final float
static final float
static final float
static final float
static final float
static final float
static final float
static final float
static final float
static final float
static final float
static final float
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isBlockGlyph
(int c) Returns true if the given char can be handled by the box drawing and block element data here, or false if the Font should try to handle that char itself.
-
Field Details
-
THIN_START
public static final float THIN_START- See Also:
-
THIN_END
public static final float THIN_END- See Also:
-
THIN_ACROSS
public static final float THIN_ACROSS- See Also:
-
THIN_OVER
public static final float THIN_OVER- See Also:
-
WIDE_START
public static final float WIDE_START- See Also:
-
WIDE_END
public static final float WIDE_END- See Also:
-
WIDE_ACROSS
public static final float WIDE_ACROSS- See Also:
-
WIDE_OVER
public static final float WIDE_OVER- See Also:
-
TWIN_START1
public static final float TWIN_START1- See Also:
-
TWIN_END1
public static final float TWIN_END1- See Also:
-
TWIN_START2
public static final float TWIN_START2- See Also:
-
TWIN_END2
public static final float TWIN_END2- See Also:
-
TWIN_ACROSS
public static final float TWIN_ACROSS- See Also:
-
TWIN_OVER1
public static final float TWIN_OVER1- See Also:
-
TWIN_OVER2
public static final float TWIN_OVER2- See Also:
-
BOX_DRAWING
public static final float[][] BOX_DRAWING -
ALL_BLOCK_CHARS
- See Also:
-
-
Constructor Details
-
BlockUtils
public BlockUtils()
-
-
Method Details
-
isBlockGlyph
public static boolean isBlockGlyph(int c) Returns true if the given char can be handled by the box drawing and block element data here, or false if the Font should try to handle that char itself.- Parameters:
c
- a char (or int in the char range, 0-65535) that could potentially be a box drawing/block element char- Returns:
- true if c is a box drawing/block element char that this can handle
-