public class FontHeader extends java.lang.Object implements FontInfo, GenericRecord
Currently only version 1 fields are read to identify a stream to be embedded.
(EOT 字体的标题数据。目前只读取版本 1 字段来识别要嵌入的流。)Modifier and Type | Class and Description |
---|---|
static class |
FontHeader.PanoseArmStyle |
static class |
FontHeader.PanoseContrast |
static class |
FontHeader.PanoseFamily |
static class |
FontHeader.PanoseLetterForm |
static class |
FontHeader.PanoseMidLine |
static class |
FontHeader.PanoseProportion |
static class |
FontHeader.PanoseSerif |
static class |
FontHeader.PanoseStroke |
static class |
FontHeader.PanoseWeight |
static class |
FontHeader.PanoseXHeight |
Modifier and Type | Field and Description |
---|---|
static int |
REGULAR_WEIGHT
Fonts with a font weight of 400 are regarded as regular weighted.
(字体粗细为 400 的字体被视为常规粗细字体。)
|
Constructor and Description |
---|
FontHeader() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFacets, getIndex, setCharset, setFamily, setIndex, setPanose, setPitch, setTypeface
getGenericChildren, getGenericRecordType
public static final int REGULAR_WEIGHT
public void init(byte[] source, int offset, int length)
public void init(LittleEndianInput leis)
public java.io.InputStream bufferInit(java.io.InputStream fontStream) throws java.io.IOException
java.io.IOException
(java.io.IOException)
public boolean isItalic()
public int getWeight()
public boolean isBold()
public byte getCharsetByte()
public FontCharset getCharset()
getCharset
in interface
FontInfo
(接口 FontInfo 中的 getCharset)
public FontPitch getPitch()
public FontFamily getFamily()
public java.lang.String getFamilyName()
public java.lang.String getStyleName()
public java.lang.String getVersionName()
public java.lang.String getFullName()
public byte[] getPanose()
public java.lang.String getTypeface()
getTypeface
in interface
FontInfo
(接口 FontInfo 中的 getTypeface)
public int getFlags()
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface
GenericRecord
(接口 GenericRecord 中的 getGenericProperties)
public FontHeader.PanoseFamily getPanoseFamily()
public FontHeader.PanoseSerif getPanoseSerif()
public FontHeader.PanoseWeight getPanoseWeight()
public FontHeader.PanoseProportion getPanoseProportion()
public FontHeader.PanoseContrast getPanoseContrast()
public FontHeader.PanoseStroke getPanoseStroke()
public FontHeader.PanoseArmStyle getPanoseArmStyle()
public FontHeader.PanoseLetterForm getPanoseLetterForm()
public FontHeader.PanoseMidLine getPanoseMidLine()
public FontHeader.PanoseXHeight getPanoseXHeight()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.