Record Class STBTT_Fontinfo

java.lang.Object
java.lang.Record
club.doki7.stb.truetype.datatype.STBTT_Fontinfo
All Implemented Interfaces:
IPointer, ISTBTT_Fontinfo

@ValueBasedCandidate @UnsafeConstructor public record STBTT_Fontinfo(@NotNull MemorySegment segment) extends Record implements ISTBTT_Fontinfo

Represents a pointer to a stbtt_fontinfo structure in native memory.

Structure

typedef struct stbtt_fontinfo {
    void* userdata;
    char* data;
    int fontstart;
    int numglyphs;
    int loca;
    int head;
    int glyf;
    int hhea;
    int hmtx;
    int kern;
    int gpos;
    int svg;
    int indexMap;
    int indextolocformat;
    stbtt__buf cff;
    stbtt__buf charstrings;
    stbtt__buf gsubrs;
    stbtt__buf subrs;
    stbtt__buf fontdicts;
    stbtt__buf fdselect;
} stbtt_fontinfo;

Contracts

The property segment() should always be not-null (segment != NULL && !segment.equals(MemorySegment.NULL)), and properly aligned to LAYOUT.byteAlignment() bytes. To represent null pointer, you may use a Java null instead. See the documentation of IPointer.segment() for more details.

The constructor of this class is marked as UnsafeConstructor, because it does not perform any runtime check. The constructor can be useful for automatic code generators.

  • Field Details

    • LAYOUT

      public static final StructLayout LAYOUT
    • BYTES

      public static final long BYTES
    • PATH$userdata

      public static final MemoryLayout.PathElement PATH$userdata
    • PATH$data

      public static final MemoryLayout.PathElement PATH$data
    • PATH$fontstart

      public static final MemoryLayout.PathElement PATH$fontstart
    • PATH$numglyphs

      public static final MemoryLayout.PathElement PATH$numglyphs
    • PATH$loca

      public static final MemoryLayout.PathElement PATH$loca
    • PATH$head

      public static final MemoryLayout.PathElement PATH$head
    • PATH$glyf

      public static final MemoryLayout.PathElement PATH$glyf
    • PATH$hhea

      public static final MemoryLayout.PathElement PATH$hhea
    • PATH$hmtx

      public static final MemoryLayout.PathElement PATH$hmtx
    • PATH$kern

      public static final MemoryLayout.PathElement PATH$kern
    • PATH$gpos

      public static final MemoryLayout.PathElement PATH$gpos
    • PATH$svg

      public static final MemoryLayout.PathElement PATH$svg
    • PATH$indexMap

      public static final MemoryLayout.PathElement PATH$indexMap
    • PATH$indextolocformat

      public static final MemoryLayout.PathElement PATH$indextolocformat
    • PATH$cff

      public static final MemoryLayout.PathElement PATH$cff
    • PATH$charstrings

      public static final MemoryLayout.PathElement PATH$charstrings
    • PATH$gsubrs

      public static final MemoryLayout.PathElement PATH$gsubrs
    • PATH$subrs

      public static final MemoryLayout.PathElement PATH$subrs
    • PATH$fontdicts

      public static final MemoryLayout.PathElement PATH$fontdicts
    • PATH$fdselect

      public static final MemoryLayout.PathElement PATH$fdselect
    • LAYOUT$userdata

      public static final AddressLayout LAYOUT$userdata
    • LAYOUT$data

      public static final AddressLayout LAYOUT$data
    • LAYOUT$fontstart

      public static final ValueLayout.OfInt LAYOUT$fontstart
    • LAYOUT$numglyphs

      public static final ValueLayout.OfInt LAYOUT$numglyphs
    • LAYOUT$loca

      public static final ValueLayout.OfInt LAYOUT$loca
    • LAYOUT$head

      public static final ValueLayout.OfInt LAYOUT$head
    • LAYOUT$glyf

      public static final ValueLayout.OfInt LAYOUT$glyf
    • LAYOUT$hhea

      public static final ValueLayout.OfInt LAYOUT$hhea
    • LAYOUT$hmtx

      public static final ValueLayout.OfInt LAYOUT$hmtx
    • LAYOUT$kern

      public static final ValueLayout.OfInt LAYOUT$kern
    • LAYOUT$gpos

      public static final ValueLayout.OfInt LAYOUT$gpos
    • LAYOUT$svg

      public static final ValueLayout.OfInt LAYOUT$svg
    • LAYOUT$indexMap

      public static final ValueLayout.OfInt LAYOUT$indexMap
    • LAYOUT$indextolocformat

      public static final ValueLayout.OfInt LAYOUT$indextolocformat
    • LAYOUT$cff

      public static final StructLayout LAYOUT$cff
    • LAYOUT$charstrings

      public static final StructLayout LAYOUT$charstrings
    • LAYOUT$gsubrs

      public static final StructLayout LAYOUT$gsubrs
    • LAYOUT$subrs

      public static final StructLayout LAYOUT$subrs
    • LAYOUT$fontdicts

      public static final StructLayout LAYOUT$fontdicts
    • LAYOUT$fdselect

      public static final StructLayout LAYOUT$fdselect
    • SIZE$userdata

      public static final long SIZE$userdata
    • SIZE$data

      public static final long SIZE$data
    • SIZE$fontstart

      public static final long SIZE$fontstart
    • SIZE$numglyphs

      public static final long SIZE$numglyphs
    • SIZE$loca

      public static final long SIZE$loca
    • SIZE$head

      public static final long SIZE$head
    • SIZE$glyf

      public static final long SIZE$glyf
    • SIZE$hhea

      public static final long SIZE$hhea
    • SIZE$hmtx

      public static final long SIZE$hmtx
    • SIZE$kern

      public static final long SIZE$kern
    • SIZE$gpos

      public static final long SIZE$gpos
    • SIZE$svg

      public static final long SIZE$svg
    • SIZE$indexMap

      public static final long SIZE$indexMap
    • SIZE$indextolocformat

      public static final long SIZE$indextolocformat
    • SIZE$cff

      public static final long SIZE$cff
    • SIZE$charstrings

      public static final long SIZE$charstrings
    • SIZE$gsubrs

      public static final long SIZE$gsubrs
    • SIZE$subrs

      public static final long SIZE$subrs
    • SIZE$fontdicts

      public static final long SIZE$fontdicts
    • SIZE$fdselect

      public static final long SIZE$fdselect
    • OFFSET$userdata

      public static final long OFFSET$userdata
    • OFFSET$data

      public static final long OFFSET$data
    • OFFSET$fontstart

      public static final long OFFSET$fontstart
    • OFFSET$numglyphs

      public static final long OFFSET$numglyphs
    • OFFSET$loca

      public static final long OFFSET$loca
    • OFFSET$head

      public static final long OFFSET$head
    • OFFSET$glyf

      public static final long OFFSET$glyf
    • OFFSET$hhea

      public static final long OFFSET$hhea
    • OFFSET$hmtx

      public static final long OFFSET$hmtx
    • OFFSET$kern

      public static final long OFFSET$kern
    • OFFSET$gpos

      public static final long OFFSET$gpos
    • OFFSET$svg

      public static final long OFFSET$svg
    • OFFSET$indexMap

      public static final long OFFSET$indexMap
    • OFFSET$indextolocformat

      public static final long OFFSET$indextolocformat
    • OFFSET$cff

      public static final long OFFSET$cff
    • OFFSET$charstrings

      public static final long OFFSET$charstrings
    • OFFSET$gsubrs

      public static final long OFFSET$gsubrs
    • OFFSET$subrs

      public static final long OFFSET$subrs
    • OFFSET$fontdicts

      public static final long OFFSET$fontdicts
    • OFFSET$fdselect

      public static final long OFFSET$fdselect
  • Constructor Details

    • STBTT_Fontinfo

      public STBTT_Fontinfo(@NotNull @NotNull MemorySegment segment)
      Creates an instance of a STBTT_Fontinfo record class.
      Parameters:
      segment - the value for the segment record component
  • Method Details