25 #ifndef ODTRVECTTFFONTSCACHE
26 #define ODTRVECTTFFONTSCACHE
31 #include "../TrVisTtfFontsCacheClient.h"
32 #ifndef OD_TTFFONTSCACHE_SHAREABLENAMESPACE
33 #define OD_TTFFONTSCACHE_SHAREABLENAMESPACE OdTrVecShareableNS
35 #include "TtfFontsCache.h"
36 #ifdef OD_TTFFONTSCACHE_SHAREABLENAMESPACE
39 #include "ExDrawOrderBase.h"
57 OdDrawOrderMetafileBase &
deviceRefs() {
return m_deviceRefs; }
76 {
return (
TtfFont)getFontCache(FontKey(fontKeyPartA, fontKeyPartB)); }
78 {
return const_cast<OdTrVecTtfFontsCache*
>(
this)->getCharMetafile((
const void *)pFont, uChar, pSideMult); }
#define OD_TTFFONTSCACHE_SHAREABLENAMESPACE
OdUInt64 getFontKey(const OdGiTextStyle *pTextStyle) const
void shareToNew(OdTrVecDevice *pDevice)
OdGiConveyorGeometry * tfcBeginMetafile(OdRxObject *pMetafile, void *pSessionId)
const void * getFontCache(const FontKey &fontKey) const
OdTrVisDisplayId getCharMetafile(TtfFont pFont, OdUInt32 uChar, double *pSideMult=NULL) const
void tfcFinalizeMetafile(OdRxObject *pMetafile, void *pSessionId)
OdStaticRxObject< OdDrawOrderMetafileBase > m_deviceRefs
OdTrVisDisplayId getCharMetafile(const void *pFont, OdUInt32 uChar, double *pSideMult=NULL)
OdRxObjectPtr tfcNewMetafile(void *pSessionId)
bool useStableFontKey() const
void setUseStableFontKey(OdTrVecDevice *pDevice)
void tfcPlayMetafile(const OdGeMatrix3d &xForm, const OdRxObject *pMetafile, void *pSessionId) const
TtfFont getFontCache(OdUInt64 fontKeyPartA, OdUInt64 fontKeyPartB) const
void tfcFinalizeMetafileExt(FontKey &fontKey, CharKey chr, OdRxObject *pMetafile, void *pSessionId)
OdDrawOrderMetafileBase & deviceRefs()
void setUseStableFontKey(bool bStableKey)