DR Developer's Guide
DR Interfaces | DR Methods | DR Types and Misc API

IMoaDrStyleAccess2



Interface ID: IID_IMoaDrStyleAccess2
Pointer type: PIMoaDrStyleAccess2
Inheritance: IMoaUnknown
Header file: driservc.h

Methods

GetFontNumber()
GetFontName()

GetFontName()

Syntax

GetFontName(PIMoaDrStyleAccess2 This,
MoaLong fontNumber,
PMoaChar pFontName,
MoaLong maxLen,
PIMoaDrCast pCast))

Parameters

This
Pointer to the IMoaDrStyleAccess2 interface

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.


GetFontNumber()

Syntax

GetFontNumber(PIMoaDrStyleAccess2 This,
PMoaChar pFontName,
MoaLong FAR * pFontNumber,
PIMoaDrCast pCast))

Parameters

This
Pointer to the IMoaDrStyleAccess2 interface

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-2007 Adobe Macromedia Software LLC, Inc.