src/main/java/com/spinyowl/legui/style/font/FontRegistry.java
public static void registerFont(final String name, final String path) {
    try {
      fontRegister.put(name, new Font(path, IOUtil.resourceToByteBuffer(path)));
    } catch (IOException e) {
      throw FAILED_TO_LOAD_FONT.create(e, path);
    }
  }
/**
   * Load and register font by provided name and paht..
   *
   * @param name font name.
   * @param path font path.
   * @throws LeguiException if failed to load font.
   */
Load and register font by provided name and paht
@param name font name.
@param path font path.
@throws LeguiException if failed to load font.
Load and register font by provided name and paht @param name font name . @param path font path . @throws LeguiException if failed to load font .
public static void registerFont(final String name, final String path) {
    try {
      fontRegister.put(name, new Font(path, IOUtil.resourceToByteBuffer(path)));
    } catch (IOException e) {
      throw FAILED_TO_LOAD_FONT.create(e, path);
    }
  }
public static void registerFont ( final String name , final String path ) { try { fontRegister . put ( name , new Font ( path , IOUtil . resourceToByteBuffer ( path ) ) ) ; } catch ( IOException e ) { throw FAILED_TO_LOAD_FONT . create ( e , path ) ; } }
Load and register font by provided name and paht..
 @param name font name.
Load and register font by provided name and paht .. @param name font name .