public class HwmfFont extends java.lang.Object implements FontInfo, GenericRecord
Modifier and Type | Class and Description |
---|---|
static class |
HwmfFont.WmfClipPrecision
ClipPrecision Flags specify clipping precision, which defines how to clip characters that are
partially outside a clipping region.
|
static class |
HwmfFont.WmfFontQuality
The output quality defines how carefully to attempt to match the logical font attributes to those of an actual
physical font.
|
static class |
HwmfFont.WmfOutPrecision
The output precision defines how closely the output must match the requested font's height,
width, character orientation, escapement, pitch, and font type.
|
Modifier and Type | Field and Description |
---|---|
protected FontCharset |
charSet
An 8-bit unsigned integer that defines the character set.
|
protected HwmfFont.WmfClipPrecision |
clipPrecision
An 8-bit unsigned integer that defines the clipping precision.
|
protected int |
escapement
A 16-bit signed integer that defines the angle, in tenths of degrees, between the
escapement vector and the x-axis of the device.
|
protected java.lang.String |
facename
A null-terminated string of 8-bit Latin-1 [ISO/IEC-8859-1] ANSI
characters that specifies the typeface name of the font.
|
protected FontFamily |
family
Font families specify the look of fonts in a general way and are
intended for specifying fonts when the exact typeface wanted is not available.
|
protected double |
height
A 16-bit signed integer that specifies the height, in logical units, of the font's
character cell.
|
protected boolean |
italic
A 8-bit Boolean value that specifies the italic attribute of the font.
|
protected int |
orientation
A 16-bit signed integer that defines the angle, in tenths of degrees,
between each character's base line and the x-axis of the device.
|
protected HwmfFont.WmfOutPrecision |
outPrecision
An 8-bit unsigned integer that defines the output precision.
|
protected FontPitch |
pitch
A property of a font that describes the pitch (MSB 2 bits)
|
protected int |
pitchAndFamily
A PitchAndFamily object that defines the pitch and the family of the font.
|
protected HwmfFont.WmfFontQuality |
quality
An 8-bit unsigned integer that defines the output quality.
|
protected boolean |
strikeOut
An 8-bit Boolean value that specifies the strike out attribute of the font.
|
protected boolean |
underline
An 8-bit Boolean value that specifies the underline attribute of the font.
|
protected int |
weight
A 16-bit signed integer that defines the weight of the font in the range 0
through 1000.
|
protected int |
width
A 16-bit signed integer that defines the average width, in logical units, of
characters in the font.
|
Constructor and Description |
---|
HwmfFont() |
Modifier and Type | Method and Description |
---|---|
FontCharset |
getCharset() |
HwmfFont.WmfClipPrecision |
getClipPrecision() |
int |
getEscapement() |
FontFamily |
getFamily() |
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
double |
getHeight() |
int |
getOrientation() |
HwmfFont.WmfOutPrecision |
getOutPrecision() |
FontPitch |
getPitch() |
int |
getPitchAndFamily() |
HwmfFont.WmfFontQuality |
getQuality() |
java.lang.String |
getTypeface() |
int |
getWeight() |
int |
getWidth() |
int |
init(LittleEndianInputStream leis,
long recordSize) |
void |
initDefaults() |
boolean |
isItalic() |
boolean |
isStrikeOut() |
boolean |
isUnderline() |
protected int |
readString(LittleEndianInputStream leis,
java.lang.StringBuilder sb,
int limit) |
protected int |
readString(LittleEndianInputStream leis,
java.lang.StringBuilder sb,
int limit,
java.nio.charset.Charset charset) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFacets, getIndex, getPanose, setCharset, setFamily, setIndex, setPanose, setPitch, setTypeface
getGenericChildren, getGenericRecordType
protected double height
protected int width
protected int escapement
protected int orientation
protected int weight
protected boolean italic
protected boolean underline
protected boolean strikeOut
protected FontCharset charSet
FontCharset
Enumeration.
The DEFAULT_CHARSET value MAY be used to allow the name and size of a font to fully
describe the logical font. If the specified font name does not exist, a font in another character
set MAY be substituted. The DEFAULT_CHARSET value is set to a value based on the current
system locale. For example, when the system locale is United States, it is set to ANSI_CHARSET.
If a typeface name in the FaceName field is specified, the CharSet value MUST match the
character set of that typeface.protected HwmfFont.WmfOutPrecision outPrecision
protected final HwmfFont.WmfClipPrecision clipPrecision
HwmfFont.WmfClipPrecision
protected HwmfFont.WmfFontQuality quality
protected int pitchAndFamily
protected FontFamily family
protected FontPitch pitch
protected java.lang.String facename
public int init(LittleEndianInputStream leis, long recordSize) throws java.io.IOException
java.io.IOException
public void initDefaults()
public double getHeight()
public int getWidth()
public int getEscapement()
public int getOrientation()
public int getWeight()
public boolean isItalic()
public boolean isUnderline()
public boolean isStrikeOut()
public HwmfFont.WmfOutPrecision getOutPrecision()
public HwmfFont.WmfClipPrecision getClipPrecision()
public HwmfFont.WmfFontQuality getQuality()
public int getPitchAndFamily()
public FontFamily getFamily()
public FontPitch getPitch()
public java.lang.String getTypeface()
getTypeface
in interface FontInfo
public FontCharset getCharset()
getCharset
in interface FontInfo
public java.lang.String toString()
toString
in class java.lang.Object
protected int readString(LittleEndianInputStream leis, java.lang.StringBuilder sb, int limit)
protected int readString(LittleEndianInputStream leis, java.lang.StringBuilder sb, int limit, java.nio.charset.Charset charset)
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface GenericRecord
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.