Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Typedefs | Functions
nsFontMetricsOS2.h File Reference
#include "nsGfxDefs.h"
#include "plhash.h"
#include "nsIFontMetrics.h"
#include "nsIFontEnumerator.h"
#include "nsFont.h"
#include "nsString.h"
#include "nsUnitConversion.h"
#include "nsIDeviceContext.h"
#include "nsCRT.h"
#include "nsDeviceContextOS2.h"
#include "nsCOMPtr.h"
#include "nsVoidArray.h"
#include "nsICharRepresentable.h"
#include "nsUnicharUtils.h"
#include "nsDrawingSurfaceOS2.h"
#include "nsTHashtable.h"
#include "nsHashKeys.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  nsMiniMetrics
class  GlobalFontEntry
class  nsFontOS2
struct  nsFontSwitch
 nsFontSwitchCallback More...
class  nsFontMetricsOS2
class  nsFontEnumeratorOS2
class  nsFontMetricsOS2FT
class  nsFontOS2FT
class  nsFontOS2Substitute

Defines

#define FM_DEFN_LATIN1   0x0010 /* Base latin character set */
#define FM_DEFN_PC   0x0020 /* PC characters */
#define FM_DEFN_LATIN2   0x0040 /* Extended latin character set */
#define FM_DEFN_CYRILLIC   0x0080 /* Cyrillic character set */
#define FM_DEFN_HEBREW   0x0100 /* Base Hebrew characters */
#define FM_DEFN_GREEK   0x0200 /* Base Greek characters */
#define FM_DEFN_ARABIC   0x0400 /* Base Arabic characters */
#define FM_DEFN_UGLEXT   0x0800 /* Additional UGL chars */
#define FM_DEFN_KANA   0x1000 /* Katakana and hiragana chars */
#define FM_DEFN_THAI   0x2000 /* Thai characters */
#define FM_DEFN_UGL383   0x0070 /* Chars in OS/2 2.1 */
#define FM_DEFN_UGL504   0x00F0 /* Chars in OS/2 Warp 4 */
#define FM_DEFN_UGL767   0x0FF0 /* Chars in ATM fonts */
#define FM_DEFN_UGL1105   0x3FF0 /* Chars in bitmap fonts */
#define USE_FREETYPE
#define PERF_HASGLYPH_CHAR_MAP
#define USE_EXPANDED_FREETYPE_FUNCS

Typedefs

typedef PRBool(* PR_CALLBACK )(const nsFontSwitch *aFontSwitch, const PRUnichar *aSubstring, PRUint32 aSubstringLength, void *aData)
typedef PFATTRS pfatAttrs
typedef PFATTRS BOOL isUnicode
typedef PFATTRS BOOL UniChar ch
typedef USHORTLPWSTR
typedef LONG lCount1
typedef LONG LPWSTR pchString
typedef LONG LPWSTR LONG lCount2
typedef LONG LPWSTR LONG PPOINTL aptlPoints
typedef PPOINTL pptlStart
typedef PPOINTL PRECTL prclRect
typedef PPOINTL PRECTL ULONG flOptions
typedef PPOINTL PRECTL ULONG LONG lCount
typedef PPOINTL PRECTL ULONG
LONG LPWSTR PLONG 
alAdx
typedef PPOINTL PRECTL ULONG
LONG LPWSTR PLONG ULONG 
fuWin32Options

Functions

typedef BOOL (APIENTRY *Ft2EnableFontEngine)(BOOL fEnable)
typedef LONG (APIENTRY *Ft2CharStringPosAtW)(HPS hps

Class Documentation

struct nsMiniMetrics

Definition at line 100 of file nsFontMetricsOS2.h.

Collaboration diagram for nsMiniMetrics:
Class Members
USHORT fsDefn
USHORT fsSelection
USHORT fsType
nsMiniMetrics * mNext
char szFacename
struct nsFontSwitch

nsFontSwitchCallback

Font-switching callback function. Used by ResolveForwards() and ResolveBackwards(). aFontSwitch points to a structure that gives details about the current font needed to represent the current substring. In particular, this struct contains a handler to the font and some metrics of the font. These metrics may be different from the metrics obtained via nsIFontMetrics. Return PR_FALSE to stop the resolution of the remaining substrings.

Definition at line 203 of file nsFontMetricsOS2.h.

Collaboration diagram for nsFontSwitch:
Class Members
nsFontOS2 * mFont
nsFontWin * mFontWin

Define Documentation

#define FM_DEFN_ARABIC   0x0400 /* Base Arabic characters */

Definition at line 78 of file nsFontMetricsOS2.h.

#define FM_DEFN_CYRILLIC   0x0080 /* Cyrillic character set */

Definition at line 75 of file nsFontMetricsOS2.h.

#define FM_DEFN_GREEK   0x0200 /* Base Greek characters */

Definition at line 77 of file nsFontMetricsOS2.h.

#define FM_DEFN_HEBREW   0x0100 /* Base Hebrew characters */

Definition at line 76 of file nsFontMetricsOS2.h.

#define FM_DEFN_KANA   0x1000 /* Katakana and hiragana chars */

Definition at line 80 of file nsFontMetricsOS2.h.

#define FM_DEFN_LATIN1   0x0010 /* Base latin character set */

Definition at line 72 of file nsFontMetricsOS2.h.

#define FM_DEFN_LATIN2   0x0040 /* Extended latin character set */

Definition at line 74 of file nsFontMetricsOS2.h.

#define FM_DEFN_PC   0x0020 /* PC characters */

Definition at line 73 of file nsFontMetricsOS2.h.

#define FM_DEFN_THAI   0x2000 /* Thai characters */

Definition at line 81 of file nsFontMetricsOS2.h.

#define FM_DEFN_UGL1105   0x3FF0 /* Chars in bitmap fonts */

Definition at line 86 of file nsFontMetricsOS2.h.

#define FM_DEFN_UGL383   0x0070 /* Chars in OS/2 2.1 */

Definition at line 83 of file nsFontMetricsOS2.h.

#define FM_DEFN_UGL504   0x00F0 /* Chars in OS/2 Warp 4 */

Definition at line 84 of file nsFontMetricsOS2.h.

#define FM_DEFN_UGL767   0x0FF0 /* Chars in ATM fonts */

Definition at line 85 of file nsFontMetricsOS2.h.

#define FM_DEFN_UGLEXT   0x0800 /* Additional UGL chars */

Definition at line 79 of file nsFontMetricsOS2.h.

Definition at line 96 of file nsFontMetricsOS2.h.

Definition at line 97 of file nsFontMetricsOS2.h.

Definition at line 93 of file nsFontMetricsOS2.h.


Typedef Documentation

typedef PPOINTL PRECTL ULONG LONG LPWSTR PLONG alAdx

Definition at line 400 of file nsFontMetricsOS2.h.

typedef LONG LPWSTR LONG PPOINTL aptlPoints

Definition at line 397 of file nsFontMetricsOS2.h.

typedef PFATTRS BOOL UniChar ch

Definition at line 392 of file nsFontMetricsOS2.h.

typedef PPOINTL PRECTL ULONG flOptions

Definition at line 400 of file nsFontMetricsOS2.h.

typedef PPOINTL PRECTL ULONG LONG LPWSTR PLONG ULONG fuWin32Options

Definition at line 400 of file nsFontMetricsOS2.h.

typedef PFATTRS BOOL isUnicode

Definition at line 392 of file nsFontMetricsOS2.h.

typedef PPOINTL PRECTL ULONG LONG lCount

Definition at line 400 of file nsFontMetricsOS2.h.

typedef LONG lCount1

Definition at line 397 of file nsFontMetricsOS2.h.

Definition at line 397 of file nsFontMetricsOS2.h.

typedef USHORT* LPWSTR

Definition at line 396 of file nsFontMetricsOS2.h.

typedef PPOINTL PRECTL ULONG LONG LPWSTR pchString

Definition at line 397 of file nsFontMetricsOS2.h.

typedef PFATTRS pfatAttrs

Definition at line 392 of file nsFontMetricsOS2.h.

typedef PPOINTL pptlStart

Definition at line 400 of file nsFontMetricsOS2.h.

typedef PRBool(* PR_CALLBACK)(const nsFontSwitch *aFontSwitch, const PRUnichar *aSubstring, PRUint32 aSubstringLength, void *aData)

Definition at line 210 of file nsFontMetricsOS2.h.

typedef PPOINTL PRECTL prclRect

Definition at line 400 of file nsFontMetricsOS2.h.


Function Documentation

typedef BOOL ( APIENTRY Ft2EnableFontEngine)
typedef LONG ( APIENTRY Ft2CharStringPosAtW)