Top Description Interfaces Classes
module lwjgl.freetype

Package org.lwjgl.util.freetype

Annotations
@NonnullDefault

Contains bindings to the FreeType, a freely available software library to render fonts.

It is written in C, designed to be small, efficient, highly customizable, and portable while capable of producing high-quality output (glyph images) of most vector and bitmap font formats.

Interface Summary

Modifier and TypeInterface and Description
public interface
FT_Alloc_FuncI

Type


void * (*invoke) (
    FT_Memory memory,
    long size
)
public interface
FT_DebugHook_FuncI

Type


FT_Error (*invoke) (
    void *arg
)
public interface
FT_Free_FuncI

Type


void (*invoke) (
    FT_Memory memory,
    void *block
)
public interface
FT_Generic_FinalizerI

Type


void (*invoke) (
    void *object
)
public interface
FT_Incremental_FreeGlyphDataFuncI

Type


void (*invoke) (
    FT_Incremental incremental,
    FT_Data *data
)
public interface
FT_Incremental_GetGlyphDataFuncI

Type


FT_Error (*invoke) (
    FT_Incremental incremental,
    FT_UInt glyph_index,
    FT_Data *adata
)
public interface
FT_Incremental_GetGlyphMetricsFuncI

Type


FT_Error (*invoke) (
    FT_Incremental incremental,
    FT_UInt glyph_index,
    FT_Bool vertical,
    FT_Incremental_MetricsRec *ametrics
)
public interface
FT_List_DestructorI

Type


void (*invoke) (
    FT_Memory memory,
    void *data,
    void *user
)
public interface
FT_List_IteratorI

Type


FT_Error (*invoke) (
    FT_ListNode node,
    void *user
)
public interface
FT_Module_ConstructorI

Type


FT_Error (*invoke) (
    FT_Module module
)
public interface
FT_Module_DestructorI

Type


void (*invoke) (
    FT_Module module
)
public interface
FT_Module_RequesterI

Type


FT_Module_Interface (*invoke) (
    FT_Module module,
    char const *name
)
public interface
FT_Outline_ConicToFuncI

Type


int (*invoke) (
    FT_Vector const *control,
    FT_Vector const *to,
    void *user
)
public interface
FT_Outline_CubicToFuncI

Type


int (*invoke) (
    FT_Vector const *control1,
    FT_Vector const *control2,
    FT_Vector const *to,
    void *user
)
public interface
FT_Outline_LineToFuncI

Type


int (*invoke) (
    FT_Vector const *to,
    void *user
)
public interface
FT_Outline_MoveToFuncI

Type


int (*invoke) (
    FT_Vector const *to,
    void *user
)
public interface
FT_Raster_DoneFuncI

Type


void (*invoke) (
    FT_Raster raster
)
public interface
FT_Raster_NewFuncI

Type


int (*invoke) (
    void *memory,
    FT_Raster *raster
)
public interface
FT_Raster_RenderFuncI

Type


int (*invoke) (
    FT_Raster raster,
    FT_Raster_Params const *params
)
public interface
FT_Raster_ResetFuncI

Type


void (*invoke) (
    FT_Raster raster,
    unsigned char *pool_base,
    unsigned long pool_size
)
public interface
FT_Raster_SetModeFuncI

Type


int (*invoke) (
    FT_Raster raster,
    unsigned long mode,
    void *args
)
public interface
FT_Realloc_FuncI

Type


void * (*invoke) (
    FT_Memory memory,
    long cur_size,
    long new_size,
    void *block
)
public interface
FT_SpanFuncI

Type


void (*invoke) (
    int y,
    int count,
    FT_Span const *spans,
    void *user
)
public interface
FT_Stream_CloseFuncI

Type


void (*invoke) (
    FT_Stream stream
)
public interface
FT_Stream_IoFuncI

Type


unsigned long (*invoke) (
    FT_Stream stream,
    unsigned long offset,
    unsigned char *buffer,
    unsigned long count
)
public interface
FTC_Face_RequesterI

Type


FT_Error (*invoke) (
    FTC_FaceID face_id,
    FT_Library library,
    FT_Pointer req_data,
    FT_Face *aface
)
public interface
SVG_Lib_Free_FuncI

Type


void (*invoke) (
    FT_Pointer *data_pointer
)
public interface
SVG_Lib_Init_FuncI

Type


FT_Error (*invoke) (
    FT_Pointer *data_pointer
)
public interface
SVG_Lib_Preset_Slot_FuncI

Type


FT_Error (*invoke) (
    FT_GlyphSlot slot,
    FT_Bool cache,
    FT_Pointer *state
)
public interface
SVG_Lib_Render_FuncI

Type


FT_Error (*invoke) (
    FT_GlyphSlot slot,
    FT_Pointer *data_pointer
)

Class Summary

Modifier and TypeClass and Description
public class
BDF_Property

This structure models a given BDF/PCF property.

public class
CID_FaceDict

A structure used to represent data in a CID top-level dictionary.

public class
CID_FaceInfo

A structure used to represent CID Face information.

public class
FreeType

Native bindings to FreeType, a freely available software library to render fonts.

public class
FT_Affine23

A structure used to store a 2x3 matrix.

public abstract class
FT_Alloc_Func

Type


void * (*invoke) (
    FT_Memory memory,
    long size
)
public class
FT_BBox

A structure used to hold an outline's bounding box, i.e., the coordinates of its extrema in the horizontal and vertical directions.

public class
FT_Bitmap

A structure used to describe a bitmap or pixmap to the raster.

public class
FT_Bitmap_Size

This structure models the metrics of a bitmap strike (i.e., a set of glyphs for a given point size and resolution) in a bitmap font.

public class
FT_BitmapGlyph

A structure used for bitmap glyph images.

public class
FT_CharMap

The base charmap structure.

public class
FT_ClipBox

A structure representing a COLR v1 ClipBox table.

public class
FT_Color

This structure models a BGRA color value of a CPAL palette entry.

public class
FT_ColorIndex

A structure representing a ColorIndex value of the COLR v1 extensions.

public class
FT_ColorLine

A structure representing a ColorLine value of the COLR v1 extensions.

public class
FT_ColorStop

A structure representing a ColorStop value of the 'COLR' v1 extensions.

public class
FT_ColorStopIterator

This iterator object is needed for Get_Colorline_Stops.

public class
FT_COLR_Paint

A union object representing format and details of a paint table of a COLR v1 font.

public class
FT_Data

Read-only binary data represented as a pointer and a length.

public abstract class
FT_DebugHook_Func

Type


FT_Error (*invoke) (
    void *arg
)
public class
FT_Face

FreeType root face class structure.

public abstract class
FT_Free_Func

Type


void (*invoke) (
    FT_Memory memory,
    void *block
)
public class
FT_Generic

Client applications often need to associate their own data to a variety of FreeType core objects.

public abstract class
FT_Generic_Finalizer

Type


void (*invoke) (
    void *object
)
public class
FT_Glyph

The root glyph structure contains a given glyph image plus its advance width in 16.16 fixed-point format.

public class
FT_Glyph_Metrics

A structure to model the metrics of a single glyph.

public class
FT_GlyphSlot

FreeType root glyph slot class structure.

public abstract class
FT_Incremental_FreeGlyphDataFunc

Type


void (*invoke) (
    FT_Incremental incremental,
    FT_Data *data
)
public class
FT_Incremental_Funcs

A table of functions for accessing fonts that load data incrementally.

public abstract class
FT_Incremental_GetGlyphDataFunc

Type


FT_Error (*invoke) (
    FT_Incremental incremental,
    FT_UInt glyph_index,
    FT_Data *adata
)
public abstract class
FT_Incremental_GetGlyphMetricsFunc

Type


FT_Error (*invoke) (
    FT_Incremental incremental,
    FT_UInt glyph_index,
    FT_Bool vertical,
    FT_Incremental_MetricsRec *ametrics
)
public class
FT_Incremental_Interface

A structure to be used with Open_Face to indicate that the user wants to support incremental glyph loading.

public class
FT_Incremental_Metrics

A small structure used to contain the basic glyph metrics returned by the FT_Incremental_GetGlyphMetricsFunc method.

public class
FT_LayerIterator

This iterator object is needed for Get_Color_Glyph_Layer.

public class
FT_List

A structure used to hold a simple doubly-linked list.

public abstract class
FT_List_Destructor

Type


void (*invoke) (
    FT_Memory memory,
    void *data,
    void *user
)
public abstract class
FT_List_Iterator

Type


FT_Error (*invoke) (
    FT_ListNode node,
    void *user
)
public class
FT_ListNode

A structure used to hold a single list element.

public class
FT_Matrix

A simple structure used to store a 2x2 matrix.

public class
FT_Memory

A structure used to describe a given memory manager to FreeType~2.

public class
FT_MM_Axis

A structure to model a given axis in design space for Multiple Masters fonts.

public class
FT_MM_Var

A structure to model the axes and space of an Adobe MM, TrueType GX, or OpenType variation font.

public class
FT_Module_Class

The module class descriptor.

public abstract class
FT_Module_Constructor

Type


FT_Error (*invoke) (
    FT_Module module
)
public abstract class
FT_Module_Destructor

Type


void (*invoke) (
    FT_Module module
)
public abstract class
FT_Module_Requester

Type


FT_Module_Interface (*invoke) (
    FT_Module module,
    char const *name
)
public class
FT_Multi_Master

A structure to model the axes and space of a Multiple Masters font.

public class
FT_OpaquePaint

A structure representing an offset to a Paint value stored in any of the paint tables of a COLR v1 font.

public class
FT_Open_Args

A structure to indicate how to open a new font file or stream.

public class
FT_Outline

This structure is used to describe an outline to the scan-line converter.

public abstract class
FT_Outline_ConicToFunc

Type


int (*invoke) (
    FT_Vector const *control,
    FT_Vector const *to,
    void *user
)
public abstract class
FT_Outline_CubicToFunc

Type


int (*invoke) (
    FT_Vector const *control1,
    FT_Vector const *control2,
    FT_Vector const *to,
    void *user
)
public class
FT_Outline_Funcs

A structure to hold various function pointers used during outline decomposition in order to emit segments, conic, and cubic Beziers.

public abstract class
FT_Outline_LineToFunc

Type


int (*invoke) (
    FT_Vector const *to,
    void *user
)
public abstract class
FT_Outline_MoveToFunc

Type


int (*invoke) (
    FT_Vector const *to,
    void *user
)
public class
FT_OutlineGlyph

A structure used for outline (vectorial) glyph images.

public class
FT_PaintColrGlyph

A structure representing a COLR v1 PaintColorGlyph paint table.

public class
FT_PaintColrLayers

A structure representing a PaintColrLayers table of a COLR v1 font.

public class
FT_PaintComposite

A structure representing a COLR v1 PaintComposite paint table.

public class
FT_PaintGlyph

A structure representing a COLR v1 PaintGlyph paint table.

public class
FT_PaintLinearGradient

A structure representing a PaintLinearGradient value of the COLR v1 extensions.

public class
FT_PaintRadialGradient

A structure representing a PaintRadialGradient value of the COLR v1 extensions.

public class
FT_PaintRotate

A structure representing a COLR v1 PaintRotate paint table.

public class
FT_PaintScale

A structure representing all of the COLR v1 PaintScale* paint tables.

public class
FT_PaintSkew

A structure representing a COLR v1 PaintSkew paint table.

public class
FT_PaintSolid

A structure representing a PaintSolid value of the COLR v1 extensions.

public class
FT_PaintSweepGradient

A structure representing a PaintSweepGradient value of the COLR v1 extensions.

public class
FT_PaintTransform

A structure representing a COLR v1 PaintTransform paint table.

public class
FT_PaintTranslate

A structure representing a COLR v1 PaintTranslate paint table.

public class
FT_Palette_Data

This structure holds the data of the CPAL table.

public class
FT_Parameter

A simple structure to pass more or less generic parameters to Open_Face and Face_Properties.

public class
FT_Prop_GlyphToScriptMap

The data exchange structure for the glyph -to-script-map property.

public class
FT_Prop_IncreaseXHeight

The data exchange structure for the increase-x-height property.

public abstract class
FT_Raster_DoneFunc

Type


void (*invoke) (
    FT_Raster raster
)
public class
FT_Raster_Funcs

A structure used to describe a given raster class to the library.

public abstract class
FT_Raster_NewFunc

Type


int (*invoke) (
    void *memory,
    FT_Raster *raster
)
public class
FT_Raster_Params

A structure to hold the parameters used by a raster's render function, passed as an argument to Outline_Render.

public abstract class
FT_Raster_RenderFunc

Type


int (*invoke) (
    FT_Raster raster,
    FT_Raster_Params const *params
)
public abstract class
FT_Raster_ResetFunc

Type


void (*invoke) (
    FT_Raster raster,
    unsigned char *pool_base,
    unsigned long pool_size
)
public abstract class
FT_Raster_SetModeFunc

Type


int (*invoke) (
    FT_Raster raster,
    unsigned long mode,
    void *args
)
public abstract class
FT_Realloc_Func

Type


void * (*invoke) (
    FT_Memory memory,
    long cur_size,
    long new_size,
    void *block
)
public class
FT_SfntLangTag

Layout


struct FT_SfntLangTag {
    FT_Byte * string;
    FT_UInt string_len;
}
public class
FT_SfntName

Layout


struct FT_SfntName {
    FT_UShort platform_id;
    FT_UShort encoding_id;
    FT_UShort language_id;
    FT_UShort name_id;
    FT_Byte * string;
    FT_UInt string_len;
}
public class
FT_Size

FreeType root size class structure.

public class
FT_Size_Internal

Layout


struct FT_Size_Internal {
    void * module_data;
    FT_Render_Mode autohint_mode;
    FT_Size_Metrics autohint_metrics;
}
public class
FT_Size_Metrics

The size metrics structure gives the metrics of a size object.

public class
FT_Size_Request

A structure to model a size request.

public class
FT_Span

A structure to model a single span of consecutive pixels when rendering an anti-aliased bitmap.

public abstract class
FT_SpanFunc

Type


void (*invoke) (
    int y,
    int count,
    FT_Span const *spans,
    void *user
)
public class
FT_Stream

A structure used to describe an input stream.

public abstract class
FT_Stream_CloseFunc

Type


void (*invoke) (
    FT_Stream stream
)
public abstract class
FT_Stream_IoFunc

Type


unsigned long (*invoke) (
    FT_Stream stream,
    unsigned long offset,
    unsigned char *buffer,
    unsigned long count
)
public class
FT_StreamDesc

A union type used to store either a long or a pointer.

public class
FT_SVG_Document

A structure that models one SVG document.

public class
FT_SvgGlyph

A structure used for OT-SVG glyphs.

public class
FT_UnitVector

A simple structure used to store a 2D vector unit vector.

public class
FT_Var_Axis

A structure to model a given axis in design space for Multiple Masters, TrueType GX, and OpenType variation fonts.

public class
FT_Var_Named_Style

A structure to model a named instance in a TrueType GX or OpenType variation font.

public class
FT_Vector

A simple structure used to store a 2D vector; coordinates are of the FT_Pos type.

public abstract class
FTC_Face_Requester

Type


FT_Error (*invoke) (
    FTC_FaceID face_id,
    FT_Library library,
    FT_Pointer req_data,
    FT_Face *aface
)
public class
FTC_ImageType

A structure used to model the type of images in a glyph cache.

public class
FTC_SBit

A very compact structure used to describe a small glyph bitmap.

public class
FTC_Scaler

A structure used to describe a given character size in either pixels or points to the cache manager.

public class
PS_FontInfo

A structure used to model a Type~1 or Type~2 FontInfo dictionary.

public class
PS_Private

A structure used to model a Type~1 or Type~2 private dictionary.

public abstract class
SVG_Lib_Free_Func

Type


void (*invoke) (
    FT_Pointer *data_pointer
)
public abstract class
SVG_Lib_Init_Func

Type


FT_Error (*invoke) (
    FT_Pointer *data_pointer
)
public abstract class
SVG_Lib_Preset_Slot_Func

Type


FT_Error (*invoke) (
    FT_GlyphSlot slot,
    FT_Bool cache,
    FT_Pointer *state
)
public abstract class
SVG_Lib_Render_Func

Type


FT_Error (*invoke) (
    FT_GlyphSlot slot,
    FT_Pointer *data_pointer
)
public class
SVG_RendererHooks

A structure that stores the four hooks needed to render OT-SVG glyphs properly.

public class
TT_Header

A structure to model a TrueType font header table.

public class
TT_HoriHeader

A structure to model a TrueType horizontal header, the hhea table, as well as the corresponding horizontal metrics table, hmtx.

public class
TT_MaxProfile

The maximum profile (maxp) table contains many max values, which can be used to pre-allocate arrays for speeding up glyph loading and hinting.

public class
TT_OS2

A structure to model a TrueType OS/2 table.

public class
TT_PCLT

A structure to model a TrueType PCLT table.

public class
TT_Postscript

A structure to model a TrueType 'post' table.

public class
TT_VertHeader

A structure used to model a TrueType vertical header, the vhea table, as well as the corresponding vertical metrics table, vmtx.