fe::IFontMapper Class Reference
[Ferry Core library]

Font mapper. More...

Inheritance diagram for fe::IFontMapper:

fe::IPluggable

List of all members.

Public Member Functions

virtual bool UC_DLL_CALL mapFont (FeHandle *editor, PlatformTypes::font_handle_type src, PlatformTypes::font_handle_type &dst) const =0


Detailed Description

Font mapper.

Instance of this class is used by an editor to translate fonts returned by the attached fe::IDecorator instance.

Note:
fe::ITextScalerFactory is an editor extension factory providing implementation of this interface.
See also:
fe::IEditorFacade::setFontMapper()

fe::IEditorFacade::getFontMapper()


Member Function Documentation

virtual bool UC_DLL_CALL fe::IFontMapper::mapFont ( FeHandle *  editor,
PlatformTypes::font_handle_type  src,
PlatformTypes::font_handle_type dst 
) const [pure virtual]

Maps one font into another. To indicate successful font translation method should return true, otherwise false. It is ok to set dst font to 0. This instructs editor to use default font instead of a src font.

Parameters:
editor editor calling the method; never 0;
src source font to translate; can be 0;
dst reference to a translated font.
Note:
mapFont() implementation should guarantee that after fe::IFontMapper instance is attached to some editor with the fe::IEditorFacade::setFontMapper() call a translated font is always the same for the given input font. If this limitation can't be met mapFont() should return false to indicate error.


The documentation for this class was generated from the following file:

Generated on Tue Nov 18 21:08:23 2008 for Ferry by doxygen 1.5.7.1
http://sourceforge.net