Converts from a Sculptor font string into an OLE object (IFont) and viceversaΒΆ

get_font_object()

Returns an OLE IFont object representing a Sculptor font string

get_font_string()

Returns a Sculptor font string representing an OLE IFont object

SYNTAX

get_font_object (string)
get_font_string (object)

get_font_object Creates an IFont object from the Sculptor font string. And returns the OLE IFont Object (in a programatic IUnknown interface).

get_font_string returns the Sculptor font string from an IFont OLE object which can be stored in an Object field.

The OLE reference may be stored in a temporary field with the special type o (object) or assigned directly to a suitable OLE control property. Assign NULL to the temp to delete the reference.


EXAMPLE

!temp objFontRef,,o
!temp sculptorFontStr,,a64

    objFontRef = get_font_object("helvetica,b@12")
    sculptorFontStr = get_font_string(objFontRef)

RELATED TOPICS

Ole functions

Object (o) type fields

IFont interface (MSDN)