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(PIMoaDrStyleAccessThis,
MoaLongfontNumber,
PMoaCharpFontName,
MoaLongmaxLen)
Parameters
-
This
- Pointer to the
IMoaDrStyleAccess
interface
fontNumber
MoaLong
Number of the font of interest
pFontName
PMoaChar
Pointer to a buffer to receive a null-terminated
C string for the name of the font
maxLen
MoaLong
Size 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(PIMoaDrStyleAccessThis,
PMoaCharpFontName,
MoaLong FAR *pFontNumber)
Parameters
-
This
- Pointer to the
IMoaDrStyleAccess
interface
pFontName
PMoaChar
Pointer to a C null-terminated C string
containing the name of the font of interest. Case is not significant
pFontNumber
MoaLong FAR *
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-2007 Adobe Macromedia Software LLC, Inc.