Class BlockUtils

java.lang.Object
com.github.tommyettinger.textra.utils.BlockUtils

public class BlockUtils
extends java.lang.Object
  • Field Summary

    Fields
    Modifier and Type Field Description
    static java.lang.String ALL_BLOCK_CHARS  
    static float[][] BOX_DRAWING  
    static float THIN_ACROSS  
    static float THIN_END  
    static float THIN_OVER  
    static float THIN_START  
    static float TWIN_ACROSS  
    static float TWIN_END1  
    static float TWIN_END2  
    static float TWIN_OVER1  
    static float TWIN_OVER2  
    static float TWIN_START1  
    static float TWIN_START2  
    static float WIDE_ACROSS  
    static float WIDE_END  
    static float WIDE_OVER  
    static float WIDE_START  
  • Constructor Summary

    Constructors
    Constructor Description
    BlockUtils()  
  • Method Summary

    Modifier and Type Method Description
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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