private int getLoadingFlags (FreeTypeFontParameter parameter) {
        int loadingFlags = FreeType.FT_LOAD_DEFAULT;
        switch (parameter.hinting) {
            case None:
                loadingFlags |= FreeType.FT_LOAD_NO_HINTING;
                break;
            case Slight:
                loadingFlags |= FreeType.FT_LOAD_TARGET_LIGHT;
                break;
            case Medium:
                loadingFlags |= FreeType.FT_LOAD_TARGET_NORMAL;
                break;
            case Full:
                loadingFlags |= FreeType.FT_LOAD_TARGET_MONO;
                break;
            case AutoSlight:
                loadingFlags |= FreeType.FT_LOAD_FORCE_AUTOHINT | FreeType.FT_LOAD_TARGET_LIGHT;
                break;
            case AutoMedium:
                loadingFlags |= FreeType.FT_LOAD_FORCE_AUTOHINT | FreeType.FT_LOAD_TARGET_NORMAL;
                break;
            case AutoFull:
                loadingFlags |= FreeType.FT_LOAD_FORCE_AUTOHINT | FreeType.FT_LOAD_TARGET_MONO;
                break;
        }
        return loadingFlags;
    }
Creates a new generator from the given font file. Uses {@link FileHandle#length()} to determine the file size. If the file
length could not be determined (it was 0), an extra copy of the font bytes is performed. Throws a
{@link GdxRuntimeException} if loading did not succeed.
core/src/com/badlogic/gdx/graphics/g2d/freetype/FreeTypeFontGenerator.java