Class TT_PCLT

All Implemented Interfaces:
Pointer

public class TT_PCLT extends Struct<TT_PCLT>

 struct TT_PCLT {
     FT_Fixed Version;
     FT_ULong FontNumber;
     FT_UShort Pitch;
     FT_UShort xHeight;
     FT_UShort Style;
     FT_UShort TypeFamily;
     FT_UShort CapHeight;
     FT_UShort SymbolSet;
     FT_Char TypeFace[16];
     FT_Char CharacterComplement[8];
     FT_Char FileName[6];
     FT_Char StrokeWeight;
     FT_Char WidthType;
     FT_Byte SerifStyle;
     FT_Byte Reserved;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • VERSION

      public static final int VERSION
      The struct member offsets.
    • FONTNUMBER

      public static final int FONTNUMBER
      The struct member offsets.
    • PITCH

      public static final int PITCH
      The struct member offsets.
    • XHEIGHT

      public static final int XHEIGHT
      The struct member offsets.
    • STYLE

      public static final int STYLE
      The struct member offsets.
    • TYPEFAMILY

      public static final int TYPEFAMILY
      The struct member offsets.
    • CAPHEIGHT

      public static final int CAPHEIGHT
      The struct member offsets.
    • SYMBOLSET

      public static final int SYMBOLSET
      The struct member offsets.
    • TYPEFACE

      public static final int TYPEFACE
      The struct member offsets.
    • CHARACTERCOMPLEMENT

      public static final int CHARACTERCOMPLEMENT
      The struct member offsets.
    • FILENAME

      public static final int FILENAME
      The struct member offsets.
    • STROKEWEIGHT

      public static final int STROKEWEIGHT
      The struct member offsets.
    • WIDTHTYPE

      public static final int WIDTHTYPE
      The struct member offsets.
    • SERIFSTYLE

      public static final int SERIFSTYLE
      The struct member offsets.
    • RESERVED

      public static final int RESERVED
      The struct member offsets.
  • Constructor Details

    • TT_PCLT

      public TT_PCLT(ByteBuffer container)
      Creates a TT_PCLT instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<TT_PCLT>
    • Version

      public long Version()
      Returns:
      the value of the Version field.
    • FontNumber

      public long FontNumber()
      Returns:
      the value of the FontNumber field.
    • Pitch

      public short Pitch()
      Returns:
      the value of the Pitch field.
    • xHeight

      public short xHeight()
      Returns:
      the value of the xHeight field.
    • Style

      public short Style()
      Returns:
      the value of the Style field.
    • TypeFamily

      public short TypeFamily()
      Returns:
      the value of the TypeFamily field.
    • CapHeight

      public short CapHeight()
      Returns:
      the value of the CapHeight field.
    • SymbolSet

      public short SymbolSet()
      Returns:
      the value of the SymbolSet field.
    • TypeFace

      public ByteBuffer TypeFace()
      Returns:
      a ByteBuffer view of the TypeFace field.
    • TypeFace

      public byte TypeFace(int index)
      Returns:
      the value at the specified index of the TypeFace field.
    • CharacterComplement

      public ByteBuffer CharacterComplement()
      Returns:
      a ByteBuffer view of the CharacterComplement field.
    • CharacterComplement

      public byte CharacterComplement(int index)
      Returns:
      the value at the specified index of the CharacterComplement field.
    • FileName

      public ByteBuffer FileName()
      Returns:
      a ByteBuffer view of the FileName field.
    • FileName

      public byte FileName(int index)
      Returns:
      the value at the specified index of the FileName field.
    • StrokeWeight

      public byte StrokeWeight()
      Returns:
      the value of the StrokeWeight field.
    • WidthType

      public byte WidthType()
      Returns:
      the value of the WidthType field.
    • SerifStyle

      public byte SerifStyle()
      Returns:
      the value of the SerifStyle field.
    • Reserved

      public byte Reserved()
      Returns:
      the value of the Reserved field.
    • create

      public static TT_PCLT create(long address)
      Returns a new TT_PCLT instance for the specified memory address.
    • createSafe

      public static @Nullable TT_PCLT createSafe(long address)
      Like create, but returns null if address is NULL.
    • create

      public static TT_PCLT.Buffer create(long address, int capacity)
      Create a TT_PCLT.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable TT_PCLT.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • nVersion

      public static long nVersion(long struct)
      Unsafe version of Version().
    • nFontNumber

      public static long nFontNumber(long struct)
      Unsafe version of FontNumber().
    • nPitch

      public static short nPitch(long struct)
      Unsafe version of Pitch().
    • nxHeight

      public static short nxHeight(long struct)
      Unsafe version of xHeight().
    • nStyle

      public static short nStyle(long struct)
      Unsafe version of Style().
    • nTypeFamily

      public static short nTypeFamily(long struct)
      Unsafe version of TypeFamily().
    • nCapHeight

      public static short nCapHeight(long struct)
      Unsafe version of CapHeight().
    • nSymbolSet

      public static short nSymbolSet(long struct)
      Unsafe version of SymbolSet().
    • nTypeFace

      public static ByteBuffer nTypeFace(long struct)
      Unsafe version of TypeFace().
    • nTypeFace

      public static byte nTypeFace(long struct, int index)
      Unsafe version of TypeFace.
    • nCharacterComplement

      public static ByteBuffer nCharacterComplement(long struct)
      Unsafe version of CharacterComplement().
    • nCharacterComplement

      public static byte nCharacterComplement(long struct, int index)
      Unsafe version of CharacterComplement.
    • nFileName

      public static ByteBuffer nFileName(long struct)
      Unsafe version of FileName().
    • nFileName

      public static byte nFileName(long struct, int index)
      Unsafe version of FileName.
    • nStrokeWeight

      public static byte nStrokeWeight(long struct)
      Unsafe version of StrokeWeight().
    • nWidthType

      public static byte nWidthType(long struct)
      Unsafe version of WidthType().
    • nSerifStyle

      public static byte nSerifStyle(long struct)
      Unsafe version of SerifStyle().
    • nReserved

      public static byte nReserved(long struct)
      Unsafe version of Reserved().