ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

font.c File Reference
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winnls.h"
#include "winreg.h"
#include "wine/debug.h"
#include "wine/unicode.h"
#include "objbase.h"
#include "gdiplus.h"
#include "gdiplus_private.h"
#include "pshpack2.h"
#include "poppack.h"

Go to the source code of this file.

Data Structures

struct  TT_OS2_V2
struct  TT_HHEA
struct  font_metrics
struct  TT_OFFSET_TABLE
struct  TT_TABLE_DIRECTORY
struct  TT_NAME_TABLE_HEADER
struct  TT_NAME_RECORD

Defines

#define GET_BE_WORD(x)   MAKEWORD(HIBYTE(x), LOBYTE(x))
#define GET_BE_DWORD(x)   MAKELONG(GET_BE_WORD(HIWORD(x)), GET_BE_WORD(LOWORD(x)));
#define MS_MAKE_TAG(ch0, ch1, ch2, ch3)
#define MS_OS2_TAG   MS_MAKE_TAG('O','S','/','2')
#define MS_HHEA_TAG   MS_MAKE_TAG('h','h','e','a')
#define NAME_ID_FULL_FONT_NAME   4
#define NAME_ID_VERSION   5
#define SWAPWORD(x)   MAKEWORD(HIBYTE(x), LOBYTE(x))
#define SWAPLONG(x)   MAKELONG(SWAPWORD(HIWORD(x)), SWAPWORD(LOWORD(x)))

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (gdiplus)
static LONG em_size_to_pixel (REAL em_size, Unit unit, LONG dpi)
GpStatus WINGDIPAPI GdipCreateFont (GDIPCONST GpFontFamily *fontFamily, REAL emSize, INT style, Unit unit, GpFont **font)
GpStatus WINGDIPAPI GdipCreateFontFromLogfontW (HDC hdc, GDIPCONST LOGFONTW *logfont, GpFont **font)
GpStatus WINGDIPAPI GdipCreateFontFromLogfontA (HDC hdc, GDIPCONST LOGFONTA *lfa, GpFont **font)
GpStatus WINGDIPAPI GdipDeleteFont (GpFont *font)
GpStatus WINGDIPAPI GdipCreateFontFromDC (HDC hdc, GpFont **font)
GpStatus WINGDIPAPI GdipGetFamily (GpFont *font, GpFontFamily **family)
GpStatus WINGDIPAPI GdipGetFontSize (GpFont *font, REAL *size)
GpStatus WINGDIPAPI GdipGetFontStyle (GpFont *font, INT *style)
GpStatus WINGDIPAPI GdipGetFontUnit (GpFont *font, Unit *unit)
GpStatus WINGDIPAPI GdipGetLogFontA (GpFont *font, GpGraphics *graphics, LOGFONTA *lfa)
GpStatus WINGDIPAPI GdipGetLogFontW (GpFont *font, GpGraphics *graphics, LOGFONTW *lfw)
GpStatus WINGDIPAPI GdipCloneFont (GpFont *font, GpFont **cloneFont)
GpStatus WINGDIPAPI GdipGetFontHeight (GDIPCONST GpFont *font, GDIPCONST GpGraphics *graphics, REAL *height)
GpStatus WINGDIPAPI GdipGetFontHeightGivenDPI (GDIPCONST GpFont *font, REAL dpi, REAL *height)
static INT CALLBACK is_font_installed_proc (const LOGFONTW *elf, const TEXTMETRICW *ntm, DWORD type, LPARAM lParam)
static BOOL get_font_metrics (HDC hdc, struct font_metrics *fm)
static GpStatus find_installed_font (const WCHAR *name, struct font_metrics *fm)
GpStatus WINGDIPAPI GdipCreateFontFamilyFromName (GDIPCONST WCHAR *name, GpFontCollection *fontCollection, GpFontFamily **FontFamily)
GpStatus WINGDIPAPI GdipCloneFontFamily (GpFontFamily *FontFamily, GpFontFamily **clonedFontFamily)
GpStatus WINGDIPAPI GdipGetFamilyName (GDIPCONST GpFontFamily *family, WCHAR *name, LANGID language)
GpStatus WINGDIPAPI GdipDeleteFontFamily (GpFontFamily *FontFamily)
GpStatus WINGDIPAPI GdipGetCellAscent (GDIPCONST GpFontFamily *family, INT style, UINT16 *CellAscent)
GpStatus WINGDIPAPI GdipGetCellDescent (GDIPCONST GpFontFamily *family, INT style, UINT16 *CellDescent)
GpStatus WINGDIPAPI GdipGetEmHeight (GDIPCONST GpFontFamily *family, INT style, UINT16 *EmHeight)
GpStatus WINGDIPAPI GdipGetLineSpacing (GDIPCONST GpFontFamily *family, INT style, UINT16 *LineSpacing)
static INT CALLBACK font_has_style_proc (const LOGFONTW *elf, const TEXTMETRICW *ntm, DWORD type, LPARAM lParam)
GpStatus WINGDIPAPI GdipIsStyleAvailable (GDIPCONST GpFontFamily *family, INT style, BOOL *IsStyleAvailable)
GpStatus WINGDIPAPI GdipGetGenericFontFamilyMonospace (GpFontFamily **nativeFamily)
GpStatus WINGDIPAPI GdipGetGenericFontFamilySerif (GpFontFamily **nativeFamily)
GpStatus WINGDIPAPI GdipGetGenericFontFamilySansSerif (GpFontFamily **nativeFamily)
GpStatus WINGDIPAPI GdipNewPrivateFontCollection (GpFontCollection **fontCollection)
GpStatus WINGDIPAPI GdipDeletePrivateFontCollection (GpFontCollection **fontCollection)
GpStatus WINGDIPAPI GdipPrivateAddFontFile (GpFontCollection *fontCollection, GDIPCONST WCHAR *filename)
static WCHARload_ttf_name_id (const char *mem, DWORD_PTR size, DWORD id, WCHAR *ret, DWORD len)
static INT CALLBACK add_font_proc (const LOGFONTW *lfw, const TEXTMETRICW *ntm, DWORD type, LPARAM lParam)
GpStatus WINGDIPAPI GdipPrivateAddMemoryFont (GpFontCollection *fontCollection, GDIPCONST void *memory, INT length)
GpStatus WINGDIPAPI GdipGetFontCollectionFamilyCount (GpFontCollection *fontCollection, INT *numFound)
GpStatus WINGDIPAPI GdipGetFontCollectionFamilyList (GpFontCollection *fontCollection, INT numSought, GpFontFamily *gpfamilies[], INT *numFound)
void free_installed_fonts (void)
GpStatus WINGDIPAPI GdipNewInstalledFontCollection (GpFontCollection **fontCollection)

Variables

static const REAL mm_per_inch = 25.4
static const REAL inch_per_point = 1.0/72.0
static GpFontCollection installedFontCollection = {0}

Generated on Sun May 27 2012 05:00:23 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.