public final class MfCmdCreateFont extends MfCmd
typedef struct tagLOGFONT { LONG lfHeight; LONG lfWidth; LONG lfEscapement; LONG lfOrientation; LONG lfWeight;
BYTE lfItalic; BYTE lfUnderline; BYTE lfStrikeOut; BYTE lfCharSet; BYTE lfOutPrecision; BYTE lfClipPrecision; BYTE
lfQuality; BYTE lfPitchAndFamily; TCHAR lfFaceName[LF_FACESIZE]; } LOGFONT, *PLOGFONT;
Modifier and Type | Field and Description |
---|---|
static int |
CHARSET_ANSI |
static int |
CHARSET_DEFAULT |
static int |
CHARSET_OEM |
static int |
CHARSET_SHIFTJIS |
static int |
CHARSET_SYMBOL |
Constructor and Description |
---|
MfCmdCreateFont() |
Modifier and Type | Method and Description |
---|---|
int |
getCharset() |
int |
getClipPrecision() |
int |
getEscapement() |
String |
getFontFace() |
int |
getFunction()
Reads the function identifier.
|
int |
getHeight() |
MfCmd |
getInstance()
Creates a empty unintialized copy of this command implementation.
|
int |
getOrientation() |
int |
getOutputPrecision() |
int |
getPitchAndFamily() |
int |
getQuality() |
MfRecord |
getRecord()
Creates a new record based on the data stored in the MfCommand.
|
int |
getScaledHeight() |
int |
getScaledWidth() |
int |
getWeight() |
int |
getWidth() |
boolean |
isItalic() |
boolean |
isStrikeout() |
boolean |
isUnderline() |
void |
replay(WmfFile file)
Replays the command on the given WmfFile.
|
protected void |
scaleXChanged()
A callback function to inform the object, that the x scale has changed and the internal coordinate values have to
be adjusted.
|
protected void |
scaleYChanged()
A callback function to inform the object, that the y scale has changed and the internal coordinate values have to
be adjusted.
|
void |
setCharset(int charset) |
void |
setClipPrecision(int clipprecision) |
void |
setEscapement(int escapement) |
void |
setFontFace(String facename) |
void |
setHeight(int height) |
void |
setItalic(boolean italic) |
void |
setOrientation(int orientation) |
void |
setOutputPrecision(int outprecision) |
void |
setPitchAndFamily(int pitchAndFamily) |
void |
setQuality(int quality) |
void |
setRecord(MfRecord record)
Reads the command data from the given record and adjusts the internal parameters according to the data parsed.
|
void |
setStrikeout(boolean so) |
void |
setUnderline(boolean ul) |
void |
setWeight(int weight) |
void |
setWidth(int width) |
String |
toString() |
applyScaleX, applyScaleY, getScaledHeight, getScaledWidth, getScaledX, getScaledY, scaleRect, setScale
public static final int CHARSET_ANSI
public static final int CHARSET_DEFAULT
public static final int CHARSET_SYMBOL
public static final int CHARSET_SHIFTJIS
public static final int CHARSET_OEM
public void replay(WmfFile file)
public MfCmd getInstance()
getInstance
in class MfCmd
public MfRecord getRecord()
public void setRecord(MfRecord record)
MfCmd
public int getFunction()
getFunction
in class MfCmd
public void setFontFace(String facename)
public String getFontFace()
public void setPitchAndFamily(int pitchAndFamily)
public int getPitchAndFamily()
public void setQuality(int quality)
public int getQuality()
public void setClipPrecision(int clipprecision)
public int getClipPrecision()
public void setOutputPrecision(int outprecision)
public int getOutputPrecision()
public void setCharset(int charset)
public int getCharset()
public void setHeight(int height)
public int getHeight()
public int getScaledHeight()
public void setWidth(int width)
protected void scaleXChanged()
scaleXChanged
in class MfCmd
protected void scaleYChanged()
scaleYChanged
in class MfCmd
public int getWidth()
public int getScaledWidth()
public void setEscapement(int escapement)
public int getEscapement()
public void setOrientation(int orientation)
public int getOrientation()
public void setWeight(int weight)
public int getWeight()
public void setItalic(boolean italic)
public boolean isItalic()
public void setUnderline(boolean ul)
public boolean isUnderline()
public void setStrikeout(boolean so)
public boolean isStrikeout()
Copyright © 2019 Hitachi Vantara. All rights reserved.