org.apache.poi.hwmf.record
Class HwmfFont

java.lang.Object
  extended by org.apache.poi.hwmf.record.HwmfFont
All Implemented Interfaces:
FontInfo

public class HwmfFont
extends java.lang.Object
implements FontInfo

The Font object specifies the attributes of a logical font


Nested Class Summary
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.
 
Constructor Summary
HwmfFont()
           
 
Method Summary
 FontCharset getCharset()
           
 HwmfFont.WmfClipPrecision getClipPrecision()
           
 int getEscapement()
           
 FontFamily getFamily()
           
 int getHeight()
           
 java.lang.Integer getIndex()
           
 int getOrientation()
           
 HwmfFont.WmfOutPrecision getOutPrecision()
           
 FontPitch getPitch()
           
 int getPitchAndFamily()
           
 HwmfFont.WmfFontQuality getQuality()
           
 java.lang.String getTypeface()
           
 int getWeight()
           
 int getWidth()
           
 int init(LittleEndianInputStream leis)
           
 boolean isItalic()
           
 boolean isStrikeOut()
           
 boolean isUnderline()
           
 void setCharset(FontCharset charset)
           
 void setFamily(FontFamily family)
           
 void setIndex(int index)
           
 void setPitch(FontPitch pitch)
           
 void setTypeface(java.lang.String typeface)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HwmfFont

public HwmfFont()
Method Detail

init

public int init(LittleEndianInputStream leis)
         throws java.io.IOException
Throws:
java.io.IOException

getHeight

public int getHeight()

getWidth

public int getWidth()

getEscapement

public int getEscapement()

getOrientation

public int getOrientation()

getWeight

public int getWeight()

isItalic

public boolean isItalic()

isUnderline

public boolean isUnderline()

isStrikeOut

public boolean isStrikeOut()

getOutPrecision

public HwmfFont.WmfOutPrecision getOutPrecision()

getClipPrecision

public HwmfFont.WmfClipPrecision getClipPrecision()

getQuality

public HwmfFont.WmfFontQuality getQuality()

getPitchAndFamily

public int getPitchAndFamily()

getFamily

public FontFamily getFamily()
Specified by:
getFamily in interface FontInfo

setFamily

public void setFamily(FontFamily family)
Specified by:
setFamily in interface FontInfo

getPitch

public FontPitch getPitch()
Specified by:
getPitch in interface FontInfo

setPitch

public void setPitch(FontPitch pitch)
Specified by:
setPitch in interface FontInfo

getIndex

public java.lang.Integer getIndex()
Specified by:
getIndex in interface FontInfo

setIndex

public void setIndex(int index)
Specified by:
setIndex in interface FontInfo

getTypeface

public java.lang.String getTypeface()
Specified by:
getTypeface in interface FontInfo

setTypeface

public void setTypeface(java.lang.String typeface)
Specified by:
setTypeface in interface FontInfo

getCharset

public FontCharset getCharset()
Specified by:
getCharset in interface FontInfo

setCharset

public void setCharset(FontCharset charset)
Specified by:
setCharset in interface FontInfo