atmfonts.cpp File Reference

(r1785/r1282)

#include "camtypes.h"
#include "camelot.h"
#include "atmfonts.h"
#include "fontman.h"
#include "atminfo.h"
#include "oilmods.h"
#include "textfuns.h"
#include "atminst.h"
#include "unicdman.h"

Go to the source code of this file.

Defines

#define new   CAM_DEBUG_NEW
#define SCALEORD(ord)   (MulDiv(ord,72000,65536))
#define MINORV(ver)   LOBYTE(LOWORD(ver))
#define MAJORV(ver)   HIBYTE(LOWORD(ver))

Functions

 DECLARE_SOURCE ("$Revision: 1282 $")
INT32 APIENTRY ATMFontMan_CallBackCacheNamedFont (ENUMLOGFONT FAR *lpelf, NEWTEXTMETRIC FAR *lpntm, INT32 FontType, LPARAM lParam)
 The call back function providing all font data.
INT32 APIENTRY ATMFontMan_CallBackValidateFont (ENUMLOGFONT FAR *lpelf, NEWTEXTMETRIC FAR *lpntm, INT32 FontType, LPARAM lParam)
 The call back function providing all font data.
INT32 APIENTRY ATMFontMan_CallBackFindClosestFont (ENUMLOGFONT FAR *lpelf, NEWTEXTMETRIC FAR *lpntm, INT32 FontType, LPARAM lParam)
 The call back function for searching for a match to a panose number.
INT32 APIENTRY ATMFontMan_CallBackDispatchFont (ENUMLOGFONT FAR *lpelf, NEWTEXTMETRIC FAR *lpntm, INT32 FontType, LPARAM lParam)
 The call back function providing all font data.


Define Documentation

#define MAJORV ver   )     HIBYTE(LOWORD(ver))
 

Definition at line 124 of file atmfonts.cpp.

#define MINORV ver   )     LOBYTE(LOWORD(ver))
 

Definition at line 123 of file atmfonts.cpp.

#define new   CAM_DEBUG_NEW
 

Definition at line 121 of file atmfonts.cpp.

#define SCALEORD ord   )     (MulDiv(ord,72000,65536))
 

Definition at line 122 of file atmfonts.cpp.


Function Documentation

INT32 APIENTRY ATMFontMan_CallBackCacheNamedFont ENUMLOGFONT FAR *  lpelf,
NEWTEXTMETRIC FAR *  lpntm,
INT32  FontType,
LPARAM  lParam
 

The call back function providing all font data.

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
12/9/95

Definition at line 1209 of file atmfonts.cpp.

01215 {
01216     UNREFERENCED_PARAMETER (lpntm);
01217 
01218     if (FontType & DEVICE_FONTTYPE)
01219     {
01220         String_64 FontName(lpelf->elfLogFont.lfFaceName);
01221 
01222         if (lParam==NULL || (_tcsncicmp(FontName, *((String_64 * )lParam), 64) == 0))
01223         {
01224             FontManager* pFontMan = GetApplication()->GetFontManager();
01225             pFontMan->SetTempFont(FC_ATM, &FontName, lpelf);
01226             return FALSE;
01227         }
01228     }
01229     return TRUE;
01230 }

INT32 APIENTRY ATMFontMan_CallBackDispatchFont ENUMLOGFONT FAR *  lpelf,
NEWTEXTMETRIC FAR *  lpntm,
INT32  FontType,
LPARAM  lParam
 

The call back function providing all font data.

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
12/9/95

Definition at line 1313 of file atmfonts.cpp.

01319 {
01320     UNREFERENCED_PARAMETER (lpntm);
01321     if (FontType & DEVICE_FONTTYPE)
01322     {
01323         // Hide aliases...
01324         if(!ATMInstall::IsFontAlias(lpelf->elfLogFont.lfFaceName))
01325         {
01326             return ((OILEnumFonts*)lParam)->NewFont(FC_ATM, lpelf);
01327         }
01328     }
01329     return TRUE;
01330 }

INT32 APIENTRY ATMFontMan_CallBackFindClosestFont ENUMLOGFONT FAR *  lpelf,
NEWTEXTMETRIC FAR *  lpntm,
INT32  FontType,
LPARAM  lParam
 

The call back function for searching for a match to a panose number.

Author:
Andy_Hayward (Xara Group Ltd) <camelotdev@xara.com>
Date:
20/08/96

Definition at line 1279 of file atmfonts.cpp.

01285 {
01286     UNREFERENCED_PARAMETER (lpntm);
01287 
01288     if (FontType & DEVICE_FONTTYPE)
01289     {
01290         String_64 FontName(lpelf->elfLogFont.lfFaceName);
01291 
01292         FontManager* pFontMan = GetApplication()->GetFontManager();
01293         return pFontMan->FindClosestFontFullTry(FC_ATM, &FontName, lpelf);
01294     }
01295     
01296     return TRUE;
01297 }

INT32 APIENTRY ATMFontMan_CallBackValidateFont ENUMLOGFONT FAR *  lpelf,
NEWTEXTMETRIC FAR *  lpntm,
INT32  FontType,
LPARAM  lParam
 

The call back function providing all font data.

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
12/9/95

Definition at line 1246 of file atmfonts.cpp.

01252 {
01253     UNREFERENCED_PARAMETER (lpntm);
01254 
01255     if (FontType & DEVICE_FONTTYPE)
01256     {
01257         String_64 FontName(lpelf->elfLogFont.lfFaceName);
01258 
01259         FontManager* pFontMan = GetApplication()->GetFontManager();
01260         pFontMan->ValidateItem(FC_ATM, &FontName, lpelf);
01261     }
01262     return TRUE;
01263 }

DECLARE_SOURCE "$Revision: 1282 $"   ) 
 


Generated on Sat Nov 10 03:49:26 2007 for Camelot by  doxygen 1.4.4