|
ReactOS 0.4.17-dev-218-g5635d24
|
#include <stdarg.h>#include "windef.h"#include "winbase.h"#include "wingdi.h"#include "winnls.h"#include "winreg.h"#include "wine/debug.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.
Classes | |
| struct | TT_OS2_V2 |
| struct | TT_HHEA |
| struct | font_metrics |
| struct | tt_header |
| struct | tt_table_directory |
| struct | tt_name_table |
| struct | tt_name_record |
| struct | add_font_param |
Macros | |
| #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 | TT_PLATFORM_APPLE_UNICODE 0 |
| #define | TT_PLATFORM_MACINTOSH 1 |
| #define | TT_PLATFORM_MICROSOFT 3 |
| #define | TT_APPLE_ID_DEFAULT 0 |
| #define | TT_APPLE_ID_ISO_10646 2 |
| #define | TT_APPLE_ID_UNICODE_2_0 3 |
| #define | TT_MS_ID_SYMBOL_CS 0 |
| #define | TT_MS_ID_UNICODE_CS 1 |
| #define | TT_MAC_ID_SIMPLIFIED_CHINESE 25 |
| #define | NAME_ID_FULL_FONT_NAME 4 |
| #define | TT_HEADER_VERSION_1 0x00010000 |
| #define | TT_HEADER_VERSION_CFF 0x4f54544f |
Variables | |
| static GpFontCollection | installedFontCollection = {0} |
| static CRITICAL_SECTION | font_cs = { &critsect_debug, -1, 0, 0, 0, 0 } |
| static CRITICAL_SECTION_DEBUG | critsect_debug |
| static const LANGID | mac_langid_table [] |
| #define GET_BE_DWORD | ( | x | ) | MAKELONG(GET_BE_WORD(HIWORD(x)), GET_BE_WORD(LOWORD(x))) |
| #define MS_MAKE_TAG | ( | ch0, | |
| ch1, | |||
| ch2, | |||
| ch3 | |||
| ) |
|
static |
Definition at line 1579 of file font.c.
Referenced by GdipNewInstalledFontCollection(), and GdipPrivateAddMemoryFont().
|
static |
Definition at line 1357 of file font.c.
Referenced by load_ttf_name_id().
|
static |
Definition at line 915 of file font.c.
Referenced by GdipIsStyleAvailable().
Definition at line 1567 of file font.c.
Referenced by DllMain(), and GdipNewInstalledFontCollection().
| GpStatus WINGDIPAPI GdipCloneFont | ( | GpFont * | font, |
| GpFont ** | cloneFont | ||
| ) |
Definition at line 503 of file font.c.
Referenced by test_CloneFont(), and test_drawdriverstring().
| GpStatus WINGDIPAPI GdipCloneFontFamily | ( | GpFontFamily * | family, |
| GpFontFamily ** | clone | ||
| ) |
Definition at line 754 of file font.c.
Referenced by GdipCreateFont(), GdipCreateFontFamilyFromName(), GdipGetFamily(), test_fontfamily(), and test_long_name().
| GpStatus WINGDIPAPI GdipCreateFont | ( | GDIPCONST GpFontFamily * | fontFamily, |
| REAL | emSize, | ||
| INT | style, | ||
| Unit | unit, | ||
| GpFont ** | font | ||
| ) |
Definition at line 150 of file font.c.
Referenced by check_family(), GdipAddPathString(), METAFILE_PlaybackObject(), test_CloneFont(), test_createfont(), test_createfont_charset(), test_font_height_scaling(), test_font_metrics(), test_font_substitution(), test_GdipMeasureString(), test_heightgivendpi(), test_long_name(), test_measure_string(), test_measured_extra_space(), test_string_functions(), and test_unknownfontdecode().
| GpStatus WINGDIPAPI GdipCreateFontFamilyFromName | ( | GDIPCONST WCHAR * | name, |
| GpFontCollection * | collection, | ||
| GpFontFamily ** | family | ||
| ) |
Definition at line 701 of file font.c.
Referenced by GdipCreateFontFromLogfontW(), GdipGetGenericFontFamilyMonospace(), GdipGetGenericFontFamilySansSerif(), GdipGetGenericFontFamilySerif(), METAFILE_PlaybackObject(), test_CloneFont(), test_createfont(), test_createfont_charset(), test_font_height_scaling(), test_font_metrics(), test_font_substitution(), test_fontfamily(), test_fontfamily_properties(), test_GdipMeasureString(), test_heightgivendpi(), test_measure_string(), test_measured_extra_space(), and test_string_functions().
| GpStatus WINGDIPAPI GdipCreateFontFromDC | ( | HDC | hdc, |
| GpFont ** | font | ||
| ) |
Definition at line 288 of file font.c.
Referenced by generate_font_link_info().
| GpStatus WINGDIPAPI GdipCreateFontFromLogfontA | ( | HDC | hdc, |
| GDIPCONST LOGFONTA * | lfa, | ||
| GpFont ** | font | ||
| ) |
Definition at line 251 of file font.c.
Referenced by test_drawdriverstring(), test_font_substitution(), test_font_transform(), test_GdipDrawString(), and test_logfont().
| GpStatus WINGDIPAPI GdipCreateFontFromLogfontW | ( | HDC | hdc, |
| GDIPCONST LOGFONTW * | logfont, | ||
| GpFont ** | font | ||
| ) |
Definition at line 204 of file font.c.
Referenced by GdipCreateFontFromDC(), GdipCreateFontFromLogfontA(), and test_font_metrics().
| GpStatus WINGDIPAPI GdipDeleteFont | ( | GpFont * | font | ) |
Definition at line 272 of file font.c.
Referenced by check_family(), GdipAddPathString(), metafile_free_object_table_entry(), release_font_link_info(), test_CloneFont(), test_createfont(), test_createfont_charset(), test_drawdriverstring(), test_font_height_scaling(), test_font_metrics(), test_font_substitution(), test_font_transform(), test_GdipDrawString(), test_GdipMeasureString(), test_heightgivendpi(), test_logfont(), test_long_name(), test_measure_string(), test_measured_extra_space(), test_string_functions(), and test_unknownfontdecode().
| GpStatus WINGDIPAPI GdipDeleteFontFamily | ( | GpFontFamily * | FontFamily | ) |
Definition at line 821 of file font.c.
Referenced by check_family(), gdip_get_font_metrics(), GdipDeleteFont(), GdipDeletePrivateFontCollection(), METAFILE_PlaybackObject(), test_CloneFont(), test_createfont(), test_createfont_charset(), test_font_height_scaling(), test_font_metrics(), test_font_substitution(), test_fontfamily(), test_fontfamily_properties(), test_GdipGetFontCollectionFamilyList(), test_GdipMeasureString(), test_heightgivendpi(), test_logfont(), test_long_name(), test_measure_string(), test_measured_extra_space(), and test_string_functions().
| GpStatus WINGDIPAPI GdipDeletePrivateFontCollection | ( | GpFontCollection ** | fontCollection | ) |
Definition at line 1076 of file font.c.
Referenced by test_GdipPrivateAddMemoryFont(), test_long_name(), and test_unknownfontdecode().
| GpStatus WINGDIPAPI GdipGetCellAscent | ( | GDIPCONST GpFontFamily * | family, |
| INT | style, | ||
| UINT16 * | CellAscent | ||
| ) |
Definition at line 834 of file font.c.
Referenced by gdip_get_font_metrics(), and test_fontfamily_properties().
| GpStatus WINGDIPAPI GdipGetCellDescent | ( | GDIPCONST GpFontFamily * | family, |
| INT | style, | ||
| UINT16 * | CellDescent | ||
| ) |
Definition at line 845 of file font.c.
Referenced by gdip_get_font_metrics(), and test_fontfamily_properties().
| GpStatus WINGDIPAPI GdipGetEmHeight | ( | GDIPCONST GpFontFamily * | family, |
| INT | style, | ||
| UINT16 * | EmHeight | ||
| ) |
Definition at line 872 of file font.c.
Referenced by gdip_get_font_metrics(), GdipAddPathString(), GdipGetFontHeightGivenDPI(), test_fontfamily_properties(), and test_logfont().
| GpStatus WINGDIPAPI GdipGetFamily | ( | GpFont * | font, |
| GpFontFamily ** | family | ||
| ) |
Definition at line 321 of file font.c.
Referenced by gdip_get_font_metrics(), test_CloneFont(), test_createfont(), and test_logfont().
| GpStatus WINGDIPAPI GdipGetFamilyName | ( | GDIPCONST GpFontFamily * | family, |
| WCHAR * | name, | ||
| LANGID | language | ||
| ) |
Definition at line 786 of file font.c.
Referenced by check_family(), GdipCreateFont(), test_createfont(), test_fontfamily(), and test_long_name().
| GpStatus WINGDIPAPI GdipGetFontCollectionFamilyCount | ( | GpFontCollection * | fontCollection, |
| INT * | numFound | ||
| ) |
Definition at line 1528 of file font.c.
Referenced by is_family_in_collection(), test_GdipGetFontCollectionFamilyCount(), test_GdipGetFontCollectionFamilyList(), test_GdipPrivateAddMemoryFont(), test_long_name(), and test_unknownfontdecode().
| GpStatus WINGDIPAPI GdipGetFontCollectionFamilyList | ( | GpFontCollection * | fontCollection, |
| INT | numSought, | ||
| GpFontFamily * | gpfamilies[], | ||
| INT * | numFound | ||
| ) |
Definition at line 1543 of file font.c.
Referenced by is_family_in_collection(), test_GdipGetFontCollectionFamilyList(), test_long_name(), and test_unknownfontdecode().
| GpStatus WINGDIPAPI GdipGetFontHeight | ( | GDIPCONST GpFont * | font, |
| GDIPCONST GpGraphics * | graphics, | ||
| REAL * | height | ||
| ) |
Definition at line 530 of file font.c.
Referenced by gdip_get_font_metrics(), test_font_height_scaling(), test_font_transform(), and test_logfont().
Definition at line 577 of file font.c.
Referenced by GdipGetFontHeight(), and test_heightgivendpi().
| GpStatus WINGDIPAPI GdipGetFontSize | ( | GpFont * | font, |
| REAL * | size | ||
| ) |
Definition at line 352 of file font.c.
Referenced by gdip_get_font_metrics(), test_CloneFont(), test_createfont(), test_GdipMeasureString(), test_logfont(), and test_measured_extra_space().
| GpStatus WINGDIPAPI GdipGetFontStyle | ( | GpFont * | font, |
| INT * | style | ||
| ) |
Definition at line 395 of file font.c.
Referenced by gdip_get_font_metrics(), METAFILE_AddFontObject(), test_CloneFont(), and test_logfont().
| GpStatus WINGDIPAPI GdipGetFontUnit | ( | GpFont * | font, |
| Unit * | unit | ||
| ) |
Definition at line 419 of file font.c.
Referenced by test_CloneFont(), test_createfont(), test_font_metrics(), test_GdipMeasureString(), test_heightgivendpi(), and test_logfont().
| GpStatus WINGDIPAPI GdipGetGenericFontFamilyMonospace | ( | GpFontFamily ** | nativeFamily | ) |
Definition at line 965 of file font.c.
Referenced by test_getgenerics().
| GpStatus WINGDIPAPI GdipGetGenericFontFamilySansSerif | ( | GpFontFamily ** | nativeFamily | ) |
Definition at line 1029 of file font.c.
Referenced by GdipGetGenericFontFamilySerif(), METAFILE_PlaybackObject(), and test_getgenerics().
| GpStatus WINGDIPAPI GdipGetGenericFontFamilySerif | ( | GpFontFamily ** | nativeFamily | ) |
Definition at line 997 of file font.c.
Referenced by test_getgenerics().
| GpStatus WINGDIPAPI GdipGetLineSpacing | ( | GDIPCONST GpFontFamily * | family, |
| INT | style, | ||
| UINT16 * | LineSpacing | ||
| ) |
Definition at line 899 of file font.c.
Referenced by gdip_get_font_metrics(), GdipGetFontHeightGivenDPI(), test_fontfamily_properties(), and test_logfont().
| GpStatus WINGDIPAPI GdipGetLogFontA | ( | GpFont * | font, |
| GpGraphics * | graphics, | ||
| LOGFONTA * | lfa | ||
| ) |
Definition at line 434 of file font.c.
Referenced by test_font_substitution(), test_font_transform(), and test_logfont().
| GpStatus WINGDIPAPI GdipGetLogFontW | ( | GpFont * | font, |
| GpGraphics * | graphics, | ||
| LOGFONTW * | lf | ||
| ) |
Definition at line 457 of file font.c.
Referenced by GdipGetLogFontA(), test_createfont_charset(), test_font_metrics(), and test_GdipMeasureString().
| GpStatus WINGDIPAPI GdipIsStyleAvailable | ( | GDIPCONST GpFontFamily * | family, |
| INT | style, | ||
| BOOL * | IsStyleAvailable | ||
| ) |
Definition at line 930 of file font.c.
| GpStatus WINGDIPAPI GdipNewInstalledFontCollection | ( | GpFontCollection ** | fontCollection | ) |
Definition at line 1669 of file font.c.
Referenced by GdipCreateFontFamilyFromName(), test_CloneFont(), test_GdipGetFontCollectionFamilyCount(), test_GdipGetFontCollectionFamilyList(), and test_installedfonts().
| GpStatus WINGDIPAPI GdipNewPrivateFontCollection | ( | GpFontCollection ** | fontCollection | ) |
Definition at line 1054 of file font.c.
Referenced by test_GdipPrivateAddMemoryFont(), test_long_name(), and test_unknownfontdecode().
| GpStatus WINGDIPAPI GdipPrivateAddFontFile | ( | GpFontCollection * | collection, |
| GDIPCONST WCHAR * | name | ||
| ) |
Definition at line 1095 of file font.c.
Referenced by test_long_name(), and test_unknownfontdecode().
| GpStatus WINGDIPAPI GdipPrivateAddMemoryFont | ( | GpFontCollection * | fontCollection, |
| GDIPCONST void * | memory, | ||
| INT | length | ||
| ) |
Definition at line 1479 of file font.c.
Referenced by GdipPrivateAddFontFile(), and test_GdipPrivateAddMemoryFont().
|
static |
Definition at line 632 of file font.c.
Referenced by add_font_proc().
Definition at line 331 of file font.c.
Referenced by GdipGetFontHeightGivenDPI(), and GdipGetFontSize().
Definition at line 364 of file font.c.
Referenced by GdipGetFontHeightGivenDPI(), and GdipGetFontStyle().
|
inlinestatic |
Definition at line 1304 of file font.c.
Referenced by copy_name_table_string(), and match_name_table_language().
|
static |
Definition at line 610 of file font.c.
Referenced by GdipCreateFontFamilyFromName(), and is_font_installed().
Definition at line 1386 of file font.c.
Referenced by font_name_from_file(), GdipPrivateAddMemoryFont(), and msi_get_font_file_version().
|
static |
Definition at line 1311 of file font.c.
Referenced by get_ttf_nametable_entry(), and load_ttf_name_id().
| WINE_DEFAULT_DEBUG_CHANNEL | ( | gdiplus | ) |
|
static |
|
static |
Definition at line 120 of file font.c.
Referenced by GdipNewInstalledFontCollection().
|
static |
Definition at line 118 of file font.c.
Referenced by free_installed_fonts(), and GdipNewInstalledFontCollection().
Definition at line 1180 of file font.c.
Referenced by match_name_table_language().