public final class FontEntityAtom extends RecordAtom
Constructor and Description |
---|
FontEntityAtom()
Create a new instance of
FontEntityAtom |
Modifier and Type | Method and Description |
---|---|
int |
getCharSet()
get the character set
|
int |
getFontFlags()
get the character set
Bit 1: If set, font is subsetted
|
int |
getFontIndex() |
java.lang.String |
getFontName()
A null-terminated string that specifies the typeface name of the font.
|
int |
getFontType()
get the font type
|
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
int |
getPitchAndFamily()
get lfPitchAndFamily
|
long |
getRecordType()
Returns the type (held as a little endian in bytes 3 and 4)
that this class handles
|
void |
setCharSet(int charset)
set the character set
|
void |
setFontFlags(int flags)
set the font flags
Bit 1: If set, font is subsetted
|
void |
setFontIndex(int idx) |
void |
setFontName(java.lang.String name)
Set the name of the font.
|
void |
setFontType(int type)
set the font type
|
void |
setPitchAndFamily(int val)
set lfPitchAndFamily
|
void |
writeOut(java.io.OutputStream out)
Write the contents of the record back, so it can be written to disk
|
getChildRecords, getMaxRecordLength, isAnAtom, setMaxRecordLength
buildRecordAtOffset, createRecordForType, findChildRecords, getGenericChildren, getGenericRecordType, writeLittleEndian, writeLittleEndian
public long getRecordType()
Record
getRecordType
in class Record
public java.lang.String getFontName()
public void setFontName(java.lang.String name)
name
- of the fontpublic void setFontIndex(int idx)
public int getFontIndex()
public void setCharSet(int charset)
charset
- - charactersetpublic int getCharSet()
public void setFontFlags(int flags)
flags
- - the font flagspublic int getFontFlags()
public void setFontType(int type)
Bit 1: Raster Font Bit 2: Device Font Bit 3: TrueType Font
type
- - the font typepublic int getFontType()
Bit 1: Raster Font Bit 2: Device Font Bit 3: TrueType Font
public void setPitchAndFamily(int val)
val
- - Corresponds to the lfPitchAndFamily field of the Win32 API LOGFONT structurepublic int getPitchAndFamily()
public void writeOut(java.io.OutputStream out) throws java.io.IOException
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.