public class HemfFont extends HwmfFont
Modifier and Type | Class and Description |
---|---|
protected static interface |
HemfFont.LogFontDetails |
protected static class |
HemfFont.LogFontExDv |
protected static class |
HemfFont.LogFontPanose |
HwmfFont.WmfClipPrecision, HwmfFont.WmfFontQuality, HwmfFont.WmfOutPrecision
Modifier and Type | Field and Description |
---|---|
protected HemfFont.LogFontDetails |
details |
protected java.lang.String |
fullname |
protected java.lang.String |
script |
protected java.lang.String |
style |
charSet, clipPrecision, escapement, facename, family, height, italic, orientation, outPrecision, pitch, pitchAndFamily, quality, strikeOut, underline, weight, width
Constructor and Description |
---|
HemfFont() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
int |
init(LittleEndianInputStream leis,
long recordSize) |
protected int |
readString(LittleEndianInputStream leis,
java.lang.StringBuilder sb,
int limit) |
void |
setHeight(double height) |
void |
setItalic(boolean italic) |
void |
setStrikeOut(boolean strikeOut) |
void |
setTypeface(java.lang.String typeface)
Sets the font name
|
void |
setUnderline(boolean underline) |
void |
setWeight(int weight) |
java.lang.String |
toString() |
getCharset, getClipPrecision, getEscapement, getFamily, getHeight, getOrientation, getOutPrecision, getPitch, getPitchAndFamily, getQuality, getTypeface, getWeight, getWidth, initDefaults, isItalic, isStrikeOut, isUnderline
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFacets, getIndex, getPanose, setCharset, setFamily, setIndex, setPanose, setPitch
getGenericChildren, getGenericRecordType
protected java.lang.String fullname
protected java.lang.String style
protected java.lang.String script
protected HemfFont.LogFontDetails details
public int init(LittleEndianInputStream leis, long recordSize) throws java.io.IOException
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface GenericRecord
getGenericProperties
in class HwmfFont
public void setHeight(double height)
public void setWeight(int weight)
public void setItalic(boolean italic)
public void setUnderline(boolean underline)
public void setStrikeOut(boolean strikeOut)
public void setTypeface(java.lang.String typeface)
FontInfo
typeface
- the full name of the font, when null
removes the font definition -
removal is implementation specificprotected int readString(LittleEndianInputStream leis, java.lang.StringBuilder sb, int limit) throws java.io.IOException
readString
in class HwmfFont
java.io.IOException
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.