DR Developer's Guide
DR Interfaces | DR Methods | DR Types and Misc API
IMoaDrStyleAccess
Interface ID: IID_IMoaDrStyleAccess
Pointer type: PIMoaDrStyleAccess
Inheritance: IMoaUnknown
Header file: driservc.h
Methods
-
- GetFontNumber()
GetFontName()
Syntax
- GetFontName(MoaLong fontNumber, PMoaChar pFontName, MoaLongmaxLen)
Parameters
- fontNumber
- MoaLongNumber of the font of interest
- pFontName
- PMoaCharPointer to a buffer to receive a null-terminated C string for the name of the font
- maxLen
- MoaLongSize of the string buffer at pFontName
Returns
- MoaError
Description
- Gets the font name associated with a font identification number.
This identification number corresponds to values in the "scrpFont" field of the
ScrpSTElement sub-structure in moaTEStyles.
This method is equivalent to Macintosh GetFontName() toolbox call.
Syntax
- GetFontNumber(PMoaChar pFontName, MoaLong * pFontNumber)
Parameters
- pFontName
- PMoaCharPointer to a C null-terminated C string
containing the name of the font of interest. Case is not significant
- pFontNumber
- MoaLong *Pointer to a MoaLong to receive the font number corresponding
with pFontName
Returns
- MoaError
Description
- Gets the font identification number associated with a font
name string. This identification number corresponds to values
in the "scrpFont" field of the ScrpSTElement sub-structure
in moaTEStyles. This
method is equivalent to the Macintosh GetFNum() toolbox call.
Currently this method always returns kMoaErr_NoErr.
Copyright © 1995-2008 Adobe Macromedia Software LLC, Inc.