home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / winfe / cvffc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.8 KB  |  52 lines

  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. //------------------------------------------------------------------------------
  20. //      Author: Frank Tang ftang@netscape.com x2913
  21. //
  22. //      Virtual Font Cacahe used for Unicode rendering
  23. //------------------------------------------------------------------------------
  24. #ifndef   __CVFFC_H
  25. #define   __CVFFC_H
  26. #include "stdafx.h"
  27.  
  28. class CVirtualFontFontCache {
  29. public:
  30. static void Init();
  31. static void Exit();
  32. static void Reset();
  33.  
  34. static void ResetCyacache();
  35. static BOOL Get(    int16 encoding, int size, BOOL fixed, BOOL bold,
  36.             BOOL italic, BOOL underline, CyaFont*& pFont );
  37. static BOOL Add(    int16 encoding, int size, BOOL fixed, BOOL bold,
  38.             BOOL italic, BOOL underline, CyaFont*& pFont );
  39.  
  40. static BOOL Get(    int16 encoding, int size, BOOL fixed, BOOL bold,
  41.             BOOL italic, BOOL underline, CFont*& pFont );
  42. static BOOL Add(    int16 encoding, int size, BOOL fixed, BOOL bold,
  43.             BOOL italic, BOOL underline, CFont*& pFont );
  44.  
  45.  
  46. private:
  47. static CMapWordToOb* m_cache;
  48.  
  49. static CMapWordToOb* m_Cyacache;
  50. };
  51. #endif
  52.