InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IDrawingStyle Class Referenceabstract

#include <IDrawingStyle.h>

Inheritance diagram for IDrawingStyle:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_IDRAWINGSTYLE }
 
enum  CapitalizeMode {
  kCapNormal = 0, kCapSmallLowercase, kCapAll, kCapSmallEverything,
  kCapLowercase
}
 
enum  PositionMode {
  kPosNormal = 0, kPosSuperscript, kPosSubscript, kPosSuperior,
  kPosInferior, kPosNumerator, kPosDenominator
}
 
enum  UnderlineMode { kUnderlineNone = 0, kUnderlineSingle }
 
enum  CharacterHang {
  kHangBaseline = 0, kHangEmCenter, kHangEmBottom, kHangEmTop,
  kHangICFBottom, kHangICFTop
}
 
enum  PositionIndicator { kDataPosition_ThisPage = 0, kDataPosition_PreviousPage, kDataPosition_NextPage, kDataPosition_TextVariable }
 
enum  OTPositioningForm {
  kOTPosForm_Off, kOTPosForm_Auto, kOTPosForm_Initial, kOTPosForm_Medial,
  kOTPosForm_Final, kOTPosForm_Isolated
}
 

Public Member Functions

virtual IFontInstanceQueryFontInstance (bool16 vertical) const =0
 
virtual IPMFontQueryFont () const =0
 
virtual bool16 IsFontMissing () const =0
 
virtual bool16 HasMMOpticalSize () const =0
 
virtual void SetSpecialGlyph (const char *name, Text::GlyphID glyph=kInvalidGlyphID)=0
 
virtual Text::GlyphID GetSpecialGlyph () const =0
 
virtual void SetPointSize (PMReal p)=0
 
virtual PMReal GetPointSize () const =0
 
virtual void SetSkewAngle (PMReal p)=0
 
virtual PMReal GetSkewAngle () const =0
 
virtual void GetScaledFontMatrix (PMMatrix *fontMatrix) const =0
 
virtual void GetUnScaledFinalFontMatrix (PMMatrix *fontMatrix, bool16 vertical) const =0
 
virtual void GetFinalFontMatrix (PMMatrix *fontMatrix, bool16 vertical) const =0
 
virtual void SetFontUID (UID u)=0
 
virtual UID GetFontUID () const =0
 
virtual void SetFontStyleName (const PMString &name)=0
 
virtual const PMStringGetFontStyleName () const =0
 
virtual const PMStringGetPostscriptFontName () const =0
 
virtual void SetMMAxes (int32 num, const Fixed *buffer)=0
 
virtual const Fixed * GetMMAxes () const =0
 
virtual void SetGlyphScaleX (PMReal scale)=0
 
virtual void SetGlyphScaleY (PMReal scale)=0
 
virtual void SetDesiredGlyphScale (PMReal xscale)=0
 
virtual PMReal GetXScale () const =0
 
virtual PMReal GetYScale () const =0
 
virtual PMReal GetXScaleOnly () const =0
 
virtual void SetLeading (PMReal abs)=0
 
virtual void SetAutoLead (PMReal factor)=0
 
virtual PMReal GetLeading () const =0
 
virtual PMReal GetAutoLead () const =0
 
virtual bool16 UseAutoLeading () const =0
 
virtual PMReal GetBaseLineShift () const =0
 
virtual void SetBaseLineShift (PMReal r)=0
 
virtual CharacterHang GetCharacterHang () const =0
 
virtual void SetCharacterHang (CharacterHang b)=0
 
virtual OTPositioningForm GetOTPositioningForm () const =0
 
virtual void SetOTPositioningForm (OTPositioningForm form)=0
 
virtual PositionIndicator GetPageNumberPosition () const =0
 
virtual void SetPageNumberPosition (PositionIndicator pi)=0
 
virtual PMReal GetEffectiveBaseline () const =0
 
virtual UID GetColorUID (bool16 stroke) const =0
 
virtual void SetColorUID (bool16 stroke, UID newColor)=0
 
virtual void SetTint (bool16 stroke, PMReal tint)=0
 
virtual PMReal GetTint (bool16 stroke) const =0
 
virtual void SetOverprint (bool16 stroke, bool16 over)=0
 
virtual bool16 GetOverprint (bool16 stroke) const =0
 
virtual void SetHiliteAngle (bool16 stroke, PMReal v)=0
 
virtual PMReal GetHiliteAngle (bool16 stroke) const =0
 
virtual void SetHiliteLength (bool16 stroke, PMReal v)=0
 
virtual PMReal GetHiliteLength (bool16 stroke) const =0
 
virtual void SetGradientAngle (bool16 stroke, PMReal angle)=0
 
virtual PMReal GetGradientAngle (bool16 stroke) const =0
 
virtual void SetGradientLength (bool16 stroke, PMReal length)=0
 
virtual PMReal GetGradientLength (bool16 stroke) const =0
 
virtual void SetGradientCenter (bool16 stroke, const PMPoint &center)=0
 
virtual PMPoint GetGradientCenter (bool16 stroke) const =0
 
virtual void SetDataBase (IDataBase *db)=0
 
virtual IDataBaseGetDataBase () const =0
 
virtual bool16 IsOutlined () const =0
 
virtual void SetOutlineWidth (PMReal width)=0
 
virtual PMReal GetOutlineWidth () const =0
 
virtual void SetMiterLimit (PMReal miterLimit)=0
 
virtual PMReal GetMiterLimit () const =0
 
virtual void SetStrokeAlignment (int32 align)=0
 
virtual int32 GetStrokeAlignment () const =0
 
virtual void SetOutlineJoin (int32 join)=0
 
virtual int32 GetOutlineJoin () const =0
 
virtual void SetUnderlineMode (UnderlineMode underlineMode)=0
 
virtual UnderlineMode GetUnderlineMode () const =0
 
virtual void SetPositionMode (PositionMode position)=0
 
virtual PositionMode GetPositionMode () const =0
 
virtual void SetStrikethruFlag (bool16 strikethru)=0
 
virtual bool16 GetStrikethruFlag () const =0
 
virtual void SetCapitalsMode (CapitalizeMode cm)=0
 
virtual CapitalizeMode GetCapitalsMode () const =0
 
virtual Text::GlyphID GetSpaceGlyph () const =0
 
virtual PMReal GetSpaceWidth () const =0
 
virtual PMReal GetEmSpaceWidth (bool16 vertical) const =0
 
virtual PMReal GetEnSpaceWidth (bool16 vertical) const =0
 
virtual PMReal GetHyphenWidth () const =0
 
virtual bool16 CanSimpleKernWith (const IDrawingStyle *other, bool16 vertical) const =0
 
virtual bool16 CanDoOpenTypeFeaturesAcross (const IDrawingStyle *other, bool16 vertical) const =0
 
virtual bool16 CanShareWaxRunWith (const IDrawingStyle *other) const =0
 
virtual bool16 GetForceVerticalGlyphs () const =0
 
virtual void SetForceVerticalGlyphs (bool16 b)=0
 
virtual void AddTextAdornment (ClassID attrID, ClassID adornmentID, ITextAdornmentData *data)=0
 
virtual void GetTextAdornment (ClassID attrID, ClassID *adornmentID, ITextAdornmentData **data)=0
 
virtual void GetTextAdornment (ClassID attrID, ClassID *adornmentID, const ITextAdornmentData **data) const =0
 
virtual void FillOutRenderData (IWaxRenderData *data, bool16 vertical) const =0
 
virtual void AddAdornments (IWaxRun *waxRun) const =0
 
virtual PMReal GetStyleEmBoxTop (bool16 verticalGlyphs, bool16 usePointSizeNotScale=kFalse) const =0
 
virtual PMReal GetStyleEmBoxBottom (bool16 verticalGlyphs, bool16 usePointSizeNotScale=kFalse) const =0
 
virtual PMReal GetStyleICFBoxTop (bool16 verticalGlyphs, bool16 usePointSizeNotScale=kFalse) const =0
 
virtual PMReal GetStyleICFBoxBottom (bool16 verticalGlyphs, bool16 usePointSizeNotScale=kFalse) const =0
 
virtual int32 GetWritingScript () const =0
 
virtual void SetForSymbolHack ()=0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

IDrawingStyle is the primary interface of character attribute summary data. Text attributes can be summarized into a kComposeStyleBoss object, which is a non-persistent summary of every text attribute applied to some text. IDrawingStyle lists most, but not all character attributes: font, pointsize, color, etc. IDrawingStyle should be considered a "read-only" interface because the set operations have no impact beyond this data interface. It does not apply through to the text that this interface derived from. The text attributes themselves are the primary setters of the data.

See Also
IComposeScanner
kComposeStyleBoss
ICompositionStyle
IHyphenationStyle
IJustificationStyle

Member Enumeration Documentation

CapitalizeMode. Normal, lowercase->small uppercase mapping, lowercase->uppercase mapping, lowercase & uppercase -> small uppercase mapping.

CharacterHang. Used in Japanese to place different sized characters relative to each other.

OpenType Positioning Form. Ties to the opentype features that control position-dependent glyphs (especially for cursive scripts like Arabic). kOTPosForm_Off = no features. kOTPosForm_Auto = automatically generates the 4 positional features listed below based on the underlying text. kOTPosForm_Initial = beginning of word form. kOTPosForm_Medial = middle of word form. kOTPosForm_Final = end of word form. kOTPosForm_Isolated = by itself (one character word) form.

PositionIndicator. Used by some calculated text (page numbers, variables, bullets & numbering).

PositionMode. Mutually exclusive positioning of glyphs. kPosSuperior = opentype superscript feature. kPosInferior = opentype subscript feature. kPosNumerator, kPosDenominator are opentype features only.

UnderlineMode. May be extended in the future.

Member Function Documentation

virtual void IDrawingStyle::AddAdornments (IWaxRunwaxRun) const
pure virtual

Add the adornments specified by the text attributes to the IWaxRun interface.

virtual void IDrawingStyle::AddTextAdornment (ClassID attrID,
ClassID adornmentID,
ITextAdornmentDatadata 
)
pure virtual

Add the adornment specified by the text attribute to this interface.

virtual bool16 IDrawingStyle::CanDoOpenTypeFeaturesAcross (const IDrawingStyleother,
bool16 vertical 
) const
pure virtual
Do both of these IDrawingStyles share the drawing-specific data such that they can share the same opentype features?

For example, opentype features cannot cross pointsize and font changes. But we do allow changes to cross color and underline changes.

Parameters
otheris an adjacent IDrawingStyle that we are composing next to.
virtual bool16 IDrawingStyle::CanShareWaxRunWith (const IDrawingStyleother) const
pure virtual
Do both of these IDrawingStyles share the drawing-specific data such that they can share the same wax run?

For example, pointsize, color, and font will create new wax runs. Page number position will not.

Parameters
otheris an adjacent IDrawingStyle that we are building wax next to.
virtual bool16 IDrawingStyle::CanSimpleKernWith (const IDrawingStyleother,
bool16 vertical 
) const
pure virtual
Do both of these IDrawingStyles share the drawing-specific data such that they can be kerned?

For example, kerning cannot cross pointsize and font changes. But we do allow kerning to cross color changes.

Parameters
otheris an adjacent IDrawingStyle that we are kerning against.
virtual void IDrawingStyle::FillOutRenderData (IWaxRenderDatadata,
bool16 vertical 
) const
pure virtual

Copy text attribute information into IWaxRun interfaces. Wax is the term for composed text data.

virtual PMReal IDrawingStyle::GetAutoLead () const
pure virtual

Returns the auto leading scale factor.

virtual PMReal IDrawingStyle::GetBaseLineShift () const
pure virtual

Get the baseline shift.

virtual CapitalizeMode IDrawingStyle::GetCapitalsMode () const
pure virtual

Get the capitalization mode.

virtual CharacterHang IDrawingStyle::GetCharacterHang () const
pure virtual
Character hang for Japanese composition.

kHangBaseline, kHangEmCenter, kHangEmBottom, kHangEmTop, kHangICFBottom, kHangICFTop.

virtual UID IDrawingStyle::GetColorUID (bool16 stroke) const
pure virtual
Get color rendering object for stroke or fill.

Parameters
strokeis kTrue from stroke, kFalse for fill.
virtual IDataBase* IDrawingStyle::GetDataBase () const
pure virtual

Get the database that these attributes came from.

virtual PMReal IDrawingStyle::GetEffectiveBaseline () const
pure virtual

Returns the calculated offset for the baseline (includes baseline shift, ILG shift, super/subscript, etc.)

virtual PMReal IDrawingStyle::GetEmSpaceWidth (bool16 vertical) const
pure virtual

Cached Em space width.

virtual PMReal IDrawingStyle::GetEnSpaceWidth (bool16 vertical) const
pure virtual

Cached En space width.

virtual void IDrawingStyle::GetFinalFontMatrix (PMMatrixfontMatrix,
bool16 vertical 
) const
pure virtual

Returns final font matrix used to draw glyphs. NOTE: origin of matrix = glyph origin (left edge/Roman baseline), which means center-based calculations like free rotation and shatai must calculate the glyph center before and after these transformations to find out where to move the glyph location.

Parameters
fontMatrixis set the the final font matrix.
virtual const PMString& IDrawingStyle::GetFontStyleName () const
pure virtual

Get the font style name.

virtual UID IDrawingStyle::GetFontUID () const
pure virtual

Get the font family UID.

virtual bool16 IDrawingStyle::GetForceVerticalGlyphs () const
pure virtual

Are the glyphs forced vertical?

virtual PMReal IDrawingStyle::GetGradientAngle (bool16 stroke) const
pure virtual
Gradient angle for stroke or fill.

Parameters
strokeis kTrue from stroke, kFalse for fill.
virtual PMPoint IDrawingStyle::GetGradientCenter (bool16 stroke) const
pure virtual
Gradient center for stroke or fill.

Parameters
strokeis kTrue from stroke, kFalse for fill.
virtual PMReal IDrawingStyle::GetGradientLength (bool16 stroke) const
pure virtual
Gradient length for stroke or fill.

Parameters
strokeis kTrue from stroke, kFalse for fill.
virtual PMReal IDrawingStyle::GetHiliteAngle (bool16 stroke) const
pure virtual
Gradient hilite angle for stroke or fill.

Parameters
strokeis kTrue from stroke, kFalse for fill.
virtual PMReal IDrawingStyle::GetHiliteLength (bool16 stroke) const
pure virtual
Gradient hilite length for stroke or fill.

Parameters
strokeis kTrue from stroke, kFalse for fill.
virtual PMReal IDrawingStyle::GetHyphenWidth () const
pure virtual

Cached width of the hyphen glyph.

virtual PMReal IDrawingStyle::GetLeading () const
pure virtual

Gets the specified leading value: either auto or fixed.

virtual PMReal IDrawingStyle::GetMiterLimit () const
pure virtual

What is the text outline miter limit?

virtual const Fixed* IDrawingStyle::GetMMAxes () const
pure virtual

Get the vector of axis values. May be nil. The number of elements in the vector is from font->GetNumDesignAxes()

virtual OTPositioningForm IDrawingStyle::GetOTPositioningForm () const
pure virtual
OpenType positioning form.

kOTPosForm_Off, kOTPosForm_Auto, kOTPosForm_Initial, kOTPosForm_Medial, kOTPosForm_Final, kOTPosForm_Isolated. corresponds to: 'init', 'medi', 'fina', 'isol'

virtual int32 IDrawingStyle::GetOutlineJoin () const
pure virtual

What is the text outline join?

virtual PMReal IDrawingStyle::GetOutlineWidth () const
pure virtual

What is the text outline width?

virtual bool16 IDrawingStyle::GetOverprint (bool16 stroke) const
pure virtual
Get overprint for stroke or fill.

Parameters
strokeis kTrue from stroke, kFalse for fill.
virtual PositionIndicator IDrawingStyle::GetPageNumberPosition () const
pure virtual
Get page number position.

kDataPosition_ThisPage = use the current page. kDataPosition_PreviousPage = previous page. kDataPosition_NextPage = next page.

virtual PMReal IDrawingStyle::GetPointSize () const
pure virtual

Get the point size.

virtual PositionMode IDrawingStyle::GetPositionMode () const
pure virtual

Get the position mode of the glyphs.

virtual const PMString& IDrawingStyle::GetPostscriptFontName () const
pure virtual

The font family UID and font style name are combined to refer to a specific font by postscript name.

Returns
The actually used postscript font name is returned.
virtual void IDrawingStyle::GetScaledFontMatrix (PMMatrixfontMatrix) const
pure virtual

Returns calculated font matrix (includes super/subscript, h/v scale only).

Parameters
fontMatrixis set the the calculated font matrix.
virtual PMReal IDrawingStyle::GetSkewAngle () const
pure virtual

Get the skew angle.

virtual Text::GlyphID IDrawingStyle::GetSpaceGlyph () const
pure virtual

Cached space glyph.

virtual PMReal IDrawingStyle::GetSpaceWidth () const
pure virtual

Cached width of the space glyph.

virtual Text::GlyphID IDrawingStyle::GetSpecialGlyph () const
pure virtual

If the underlying character didn't have a unicode representation, this will return the expected glyph.

virtual bool16 IDrawingStyle::GetStrikethruFlag () const
pure virtual

Is strike through enabled?

virtual int32 IDrawingStyle::GetStrokeAlignment () const
pure virtual

What is the text stroke alignment?

virtual PMReal IDrawingStyle::GetStyleEmBoxBottom (bool16 verticalGlyphs,
bool16 usePointSizeNotScale = kFalse 
) const
pure virtual

The EmBox and ICFBox are font metrics specific to japanese fonts.

virtual PMReal IDrawingStyle::GetStyleEmBoxTop (bool16 verticalGlyphs,
bool16 usePointSizeNotScale = kFalse 
) const
pure virtual

The EmBox and ICFBox are font metrics specific to japanese fonts.

virtual PMReal IDrawingStyle::GetStyleICFBoxBottom (bool16 verticalGlyphs,
bool16 usePointSizeNotScale = kFalse 
) const
pure virtual

The EmBox and ICFBox are font metrics specific to japanese fonts. (ICF=Ideographic Character Face)

See Also
http://partners.adobe.com/asn/tech/type/opentype/appendices/baselinetags.jsp#icfbox
virtual PMReal IDrawingStyle::GetStyleICFBoxTop (bool16 verticalGlyphs,
bool16 usePointSizeNotScale = kFalse 
) const
pure virtual

The EmBox and ICFBox are font metrics specific to japanese fonts. (ICF=Ideographic Character Face)

See Also
http://partners.adobe.com/asn/tech/type/opentype/appendices/baselinetags.jsp#icfbox
virtual void IDrawingStyle::GetTextAdornment (ClassID attrID,
ClassIDadornmentID,
ITextAdornmentData ** data 
)
pure virtual

Get one text adornment's data for writing. This method assumes you will modify the data, which is much slower because it makes a copy.

virtual void IDrawingStyle::GetTextAdornment (ClassID attrID,
ClassIDadornmentID,
const ITextAdornmentData ** data 
) const
pure virtual

Read one text adornment's data. This method assumes you won't modify the data, which is much more efficient because it won't make copies.

virtual PMReal IDrawingStyle::GetTint (bool16 stroke) const
pure virtual
Get tint percent for stroke or fill.

Parameters
strokeis kTrue from stroke, kFalse for fill.
virtual UnderlineMode IDrawingStyle::GetUnderlineMode () const
pure virtual

Get Underline mode.

virtual void IDrawingStyle::GetUnScaledFinalFontMatrix (PMMatrixfontMatrix,
bool16 vertical 
) const
pure virtual

Returns matrix you can concat with scaled font matrix to get final font matrix.

Parameters
fontMatrixis set the the font matrix.
verticalspecifies the primary writing direction.
virtual int32 IDrawingStyle::GetWritingScript () const
pure virtual

Get the WritingScript()

virtual PMReal IDrawingStyle::GetXScale () const
pure virtual

Returns the product of both the user's x-scale and the desired glyph scale.

virtual PMReal IDrawingStyle::GetXScaleOnly () const
pure virtual

Returns only the user's x-scale and NOT the desired glyph scale.

virtual PMReal IDrawingStyle::GetYScale () const
pure virtual

Returns the specified y-scale.

virtual bool16 IDrawingStyle::HasMMOpticalSize () const
pure virtual

Does the referred-to font have the multiple master optical size axis? This is only special because the optical size can be set to match the pointsize, giving the optimal font appearance.

virtual bool16 IDrawingStyle::IsFontMissing () const
pure virtual

Is the referred-to font considered missing?

virtual bool16 IDrawingStyle::IsOutlined () const
pure virtual

Is the text outlined?

virtual IPMFont* IDrawingStyle::QueryFont () const
pure virtual

Query for the IPMFont. IPMFont does not specify a writing direction or pointsize, just the font object.

virtual IFontInstance* IDrawingStyle::QueryFontInstance (bool16 vertical) const
pure virtual

Query for the IFontInstance.

Parameters
verticalspecifies whether you wish the horizontal or vertical instance.
virtual void IDrawingStyle::SetAutoLead (PMReal factor)
pure virtual

Sets the auto-leading factor. Leading = factor * pointsize.

virtual void IDrawingStyle::SetBaseLineShift (PMReal r)
pure virtual

Set the baseline shift.

virtual void IDrawingStyle::SetCapitalsMode (CapitalizeMode cm)
pure virtual
Set the capitalization mode.

Parameters
cmcan be: kCapNormal has no affect. kCapSmallLowercase draws lowercase letters as small capitals. kCapAll draws all letters as capitals. kCapLowercase draws all letters in lowercase. kCapSmallEverything will draw both uppercase and lowercase letters as small capitals, but is only supported by opentype fonts that have the 'c2sc' feature currently.
virtual void IDrawingStyle::SetCharacterHang (CharacterHang b)
pure virtual

Character hang for Japanese composition.

virtual void IDrawingStyle::SetColorUID (bool16 stroke,
UID newColor 
)
pure virtual
Set color rendering object for stroke or fill.

Parameters
strokeis kTrue from stroke, kFalse for fill.
virtual void IDrawingStyle::SetDataBase (IDataBasedb)
pure virtual
The system sets the database when creating the kComposeStyleBoss.

Don't call this method.

virtual void IDrawingStyle::SetDesiredGlyphScale (PMReal xscale)
pure virtual

This is the desired glyph scale set in the justification dialog. The user may specify scaling in the x & y direction, but the user may also specify a desired glyph scale in the justification dialog.

virtual void IDrawingStyle::SetFontStyleName (const PMStringname)
pure virtual

In addition to the font family, fonts have style names. It would appear as "Bold" or "Roman" or "" or "Semibold Condensed" for example.

Parameters
nameis the font style name.
virtual void IDrawingStyle::SetFontUID (UID u)
pure virtual

Fonts are divided into families, and each family has a separate record in an InDesign document.

Parameters
uis a font UID refering to one of these IFontFamily objects.
virtual void IDrawingStyle::SetForceVerticalGlyphs (bool16 b)
pure virtual

Force the glyphs to be vertical.

virtual void IDrawingStyle::SetForSymbolHack ()
pure virtual

The Macintosh has always supported a dozen or so mathematical symbols in every font by substituting the "Symbol" font behind the scenes. This reproduces that behavior. We do it on both platforms (starting in CS3) for consistency.

virtual void IDrawingStyle::SetGlyphScaleX (PMReal scale)
pure virtual

Sets the scale factor in the x direction

virtual void IDrawingStyle::SetGlyphScaleY (PMReal scale)
pure virtual

Sets the scale factor in the y direction. This is different from setting the pointsize larger because larger pointsizes affect a number of different calculations (leading, optical sizes, etc) but the y scale does not.

virtual void IDrawingStyle::SetGradientAngle (bool16 stroke,
PMReal angle 
)
pure virtual
Gradient angle for stroke or fill.

Parameters
strokeis kTrue from stroke, kFalse for fill.
virtual void IDrawingStyle::SetGradientCenter (bool16 stroke,
const PMPointcenter 
)
pure virtual
Gradient center for stroke or fill.

Parameters
strokeis kTrue from stroke, kFalse for fill.
virtual void IDrawingStyle::SetGradientLength (bool16 stroke,
PMReal length 
)
pure virtual
Gradient length for stroke or fill.

Parameters
strokeis kTrue from stroke, kFalse for fill.
virtual void IDrawingStyle::SetHiliteAngle (bool16 stroke,
PMReal v 
)
pure virtual
Gradient hilite angle for stroke or fill.

Parameters
strokeis kTrue from stroke, kFalse for fill.
virtual void IDrawingStyle::SetHiliteLength (bool16 stroke,
PMReal v 
)
pure virtual
Gradient hilite length for stroke or fill.

Parameters
strokeis kTrue from stroke, kFalse for fill.
virtual void IDrawingStyle::SetLeading (PMReal abs)
pure virtual

Sets the leading value. Values less than zero are considered "auto".

virtual void IDrawingStyle::SetMiterLimit (PMReal miterLimit)
pure virtual
What is the text outline miter limit?

Parameters
miterLimit- the miter limit of the text's outline.
virtual void IDrawingStyle::SetMMAxes (int32 num,
const Fixed * buffer 
)
pure virtual

Multiple master fonts have a vector of 16/16 fixed point numbers that specify the values of each multiple master axis.

Parameters
numis number of values in the buffer. is the array of fixed point axis values.
virtual void IDrawingStyle::SetOTPositioningForm (OTPositioningForm form)
pure virtual

enType positioning form.

virtual void IDrawingStyle::SetOutlineJoin (int32 join)
pure virtual
What is the text outline join?

Parameters
join- the text's outline join.
virtual void IDrawingStyle::SetOutlineWidth (PMReal width)
pure virtual
What is the text outline width?

Parameters
widthis the line weight of the text's outline.
virtual void IDrawingStyle::SetOverprint (bool16 stroke,
bool16 over 
)
pure virtual
Set overprint for stroke or fill.

Parameters
strokeis kTrue from stroke, kFalse for fill.
virtual void IDrawingStyle::SetPageNumberPosition (PositionIndicator pi)
pure virtual
Set page number position.

Parameters
pican be kDataPosition_ThisPage, kDataPosition_PreviousPage, or kDataPosition_NextPage = next page.
virtual void IDrawingStyle::SetPointSize (PMReal p)
pure virtual

Set the point size.

virtual void IDrawingStyle::SetPositionMode (PositionMode position)
pure virtual
Set the position mode of the glyphs.

kPosNormal has no affect. kPosSuperscript scales and shifts the glyphs up. kPosSubscript scales and shifts the glyphs down. kPosSuperior applies the opentype 'sups' feature. kPosInferior applies the opentype 'sinf' AND 'subs'. kPosNumerator applies opentype 'numr'. kPosDenominator applies opentype 'deno'

virtual void IDrawingStyle::SetSkewAngle (PMReal p)
pure virtual

Set the skew angle.

virtual void IDrawingStyle::SetSpecialGlyph (const char * name,
Text::GlyphID glyph = kInvalidGlyphID 
)
pure virtual

Set the glyph-specific data for the non-representable character. Only used in special cases where the font has glyphs wanted without associated unicode character values.

virtual void IDrawingStyle::SetStrikethruFlag (bool16 strikethru)
pure virtual

Is strike through enabled?

virtual void IDrawingStyle::SetStrokeAlignment (int32 align)
pure virtual
What is the text stroke aglignment?

Parameters
align- the text's stroke alignment.
virtual void IDrawingStyle::SetTint (bool16 stroke,
PMReal tint 
)
pure virtual
Set tint percent for stroke or fill.

Parameters
strokeis kTrue from stroke, kFalse for fill.
virtual void IDrawingStyle::SetUnderlineMode (UnderlineMode underlineMode)
pure virtual
Set underline mode. This is only On/Off actually. the enum names is a historical misnomer.

Actually, the stroke style is specified in the kTextAttrCharUnderlineTypeBoss text attribute. Perhaps we will have the idea of skipping descenders specified here some day.

virtual bool16 IDrawingStyle::UseAutoLeading () const
pure virtual

Is auto-leading specified?