DR Developer's Guide
DR Interfaces |
DR Methods |
DR Types and Misc API
Interface ID: IID_IMoaDrStyleAccess2
Pointer type: PIMoaDrStyleAccess2
Inheritance: IMoaUnknown
Header file: driservc.h
Methods
- GetFontNumber()
GetFontName()
Syntax
- GetFontName(MoaLong fontNumber, PMoaChar pFontName, MoaLong maxLen,PIMoaDrCast pCast)
Parameters
- fontNumber
- Number of the font of interest
- pFontName
- Pointer to a buffer to receive a null-terminated C string for the name of the font
- maxLen
- Size of the string buffer at pFontName
- pCast
- pointer to the director cast storing the font information we are accessing
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, PIMoaDrCast pCast)
Parameters
- pFontName
- Pointer to a C null-terminated C string containing the name of the font of interest. Case is not significant.
- pFontNumber
- Pointer to a MoaLong to receive the font number corresponding with pFontName
- pCast
- pointer to the director cast storing the font information we are accessing
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.