|
ReactOS 0.4.16-dev-1946-g52006dd
|
#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.
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 |
Variables | |
| static GpFontCollection | installedFontCollection = {0} |
| 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 1617 of file font.c.
Referenced by GdipNewInstalledFontCollection(), and GdipPrivateAddMemoryFont().
|
static |
Definition at line 781 of file font.c.
Referenced by GdipCloneFontFamily(), and GdipCreateFont().
|
static |
Definition at line 1397 of file font.c.
Referenced by load_ttf_name_id().
|
static |
Definition at line 703 of file font.c.
Referenced by GdipCreateFontFamilyFromName().
|
static |
Definition at line 961 of file font.c.
Referenced by GdipIsStyleAvailable().
Definition at line 1608 of file font.c.
Referenced by DllMain(), and GdipNewInstalledFontCollection().
| GpStatus WINGDIPAPI GdipCloneFont | ( | GpFont * | font, |
| GpFont ** | cloneFont | ||
| ) |
Definition at line 520 of file font.c.
| GpStatus WINGDIPAPI GdipCloneFontFamily | ( | GpFontFamily * | FontFamily, |
| GpFontFamily ** | clonedFontFamily | ||
| ) |
Definition at line 803 of file font.c.
Referenced by GdipCloneFont(), GdipGetFamily(), GdipGetFontCollectionFamilyList(), and test_fontfamily().
| GpStatus WINGDIPAPI GdipCreateFont | ( | GDIPCONST GpFontFamily * | fontFamily, |
| REAL | emSize, | ||
| INT | style, | ||
| Unit | unit, | ||
| GpFont ** | font | ||
| ) |
Definition at line 144 of file font.c.
Referenced by check_family(), GdipAddPathString(), METAFILE_PlaybackObject(), test_createfont(), test_font_height_scaling(), test_font_metrics(), test_font_substitution(), test_GdipMeasureString(), test_heightgivendpi(), test_long_name(), test_measure_string(), test_measured_extra_space(), and test_string_functions().
| GpStatus WINGDIPAPI GdipCreateFontFamilyFromName | ( | GDIPCONST WCHAR * | name, |
| GpFontCollection * | fontCollection, | ||
| GpFontFamily ** | FontFamily | ||
| ) |
Definition at line 746 of file font.c.
Referenced by add_font_proc(), GdipCreateFontFromLogfontW(), GdipGetGenericFontFamilyMonospace(), GdipGetGenericFontFamilySansSerif(), GdipGetGenericFontFamilySerif(), METAFILE_PlaybackObject(), test_createfont(), 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 286 of file font.c.
| GpStatus WINGDIPAPI GdipCreateFontFromLogfontA | ( | HDC | hdc, |
| GDIPCONST LOGFONTA * | lfa, | ||
| GpFont ** | font | ||
| ) |
Definition at line 249 of file font.c.
Referenced by test_font_substitution(), test_font_transform(), test_GdipDrawString(), and test_logfont().
| GpStatus WINGDIPAPI GdipCreateFontFromLogfontW | ( | HDC | hdc, |
| GDIPCONST LOGFONTW * | logfont, | ||
| GpFont ** | font | ||
| ) |
Definition at line 203 of file font.c.
Referenced by GdipCreateFontFromDC(), GdipCreateFontFromLogfontA(), and test_font_metrics().
| GpStatus WINGDIPAPI GdipDeleteFont | ( | GpFont * | font | ) |
Definition at line 270 of file font.c.
Referenced by check_family(), GdipAddPathString(), metafile_free_object_table_entry(), test_createfont(), 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(), and test_string_functions().
| GpStatus WINGDIPAPI GdipDeleteFontFamily | ( | GpFontFamily * | FontFamily | ) |
Definition at line 869 of file font.c.
Referenced by add_font_proc(), check_family(), free_installed_fonts(), gdip_get_font_metrics(), GdipDeleteFont(), GdipGetFontCollectionFamilyList(), METAFILE_PlaybackObject(), test_createfont(), test_font_height_scaling(), test_font_metrics(), test_font_substitution(), test_fontfamily(), test_fontfamily_properties(), test_GdipGetFontCollectionFamilyList(), test_GdipMeasureString(), test_heightgivendpi(), test_logfont(), test_measure_string(), test_measured_extra_space(), and test_string_functions().
| GpStatus WINGDIPAPI GdipDeletePrivateFontCollection | ( | GpFontCollection ** | fontCollection | ) |
Definition at line 1118 of file font.c.
Referenced by test_long_name().
| GpStatus WINGDIPAPI GdipGetCellAscent | ( | GDIPCONST GpFontFamily * | family, |
| INT | style, | ||
| UINT16 * | CellAscent | ||
| ) |
Definition at line 880 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 891 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 918 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 319 of file font.c.
Referenced by gdip_get_font_metrics(), test_createfont(), and test_logfont().
| GpStatus WINGDIPAPI GdipGetFamilyName | ( | GDIPCONST GpFontFamily * | family, |
| WCHAR * | name, | ||
| LANGID | language | ||
| ) |
Definition at line 837 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 1559 of file font.c.
Referenced by test_GdipGetFontCollectionFamilyCount(), test_GdipGetFontCollectionFamilyList(), and test_long_name().
| GpStatus WINGDIPAPI GdipGetFontCollectionFamilyList | ( | GpFontCollection * | fontCollection, |
| INT | numSought, | ||
| GpFontFamily * | gpfamilies[], | ||
| INT * | numFound | ||
| ) |
Definition at line 1574 of file font.c.
Referenced by test_GdipGetFontCollectionFamilyList(), and test_long_name().
| GpStatus WINGDIPAPI GdipGetFontHeight | ( | GDIPCONST GpFont * | font, |
| GDIPCONST GpGraphics * | graphics, | ||
| REAL * | height | ||
| ) |
Definition at line 552 of file font.c.
Referenced by gdip_get_font_metrics(), test_font_height_scaling(), test_font_transform(), and test_logfont().
Definition at line 599 of file font.c.
Referenced by GdipGetFontHeight(), and test_heightgivendpi().
| GpStatus WINGDIPAPI GdipGetFontSize | ( | GpFont * | font, |
| REAL * | size | ||
| ) |
Definition at line 350 of file font.c.
Referenced by gdip_get_font_metrics(), test_createfont(), test_GdipMeasureString(), test_logfont(), and test_measured_extra_space().
| GpStatus WINGDIPAPI GdipGetFontStyle | ( | GpFont * | font, |
| INT * | style | ||
| ) |
Definition at line 393 of file font.c.
Referenced by gdip_get_font_metrics(), and test_logfont().
| GpStatus WINGDIPAPI GdipGetFontUnit | ( | GpFont * | font, |
| Unit * | unit | ||
| ) |
Definition at line 417 of file font.c.
Referenced by test_createfont(), test_font_metrics(), test_GdipMeasureString(), test_heightgivendpi(), and test_logfont().
| GpStatus WINGDIPAPI GdipGetGenericFontFamilyMonospace | ( | GpFontFamily ** | nativeFamily | ) |
Definition at line 1010 of file font.c.
Referenced by test_getgenerics().
| GpStatus WINGDIPAPI GdipGetGenericFontFamilySansSerif | ( | GpFontFamily ** | nativeFamily | ) |
Definition at line 1074 of file font.c.
Referenced by test_getgenerics().
| GpStatus WINGDIPAPI GdipGetGenericFontFamilySerif | ( | GpFontFamily ** | nativeFamily | ) |
Definition at line 1041 of file font.c.
Referenced by test_getgenerics().
| GpStatus WINGDIPAPI GdipGetLineSpacing | ( | GDIPCONST GpFontFamily * | family, |
| INT | style, | ||
| UINT16 * | LineSpacing | ||
| ) |
Definition at line 945 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 432 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 455 of file font.c.
Referenced by GdipGetLogFontA(), test_font_metrics(), and test_GdipMeasureString().
| GpStatus WINGDIPAPI GdipIsStyleAvailable | ( | GDIPCONST GpFontFamily * | family, |
| INT | style, | ||
| BOOL * | IsStyleAvailable | ||
| ) |
Definition at line 976 of file font.c.
| GpStatus WINGDIPAPI GdipNewInstalledFontCollection | ( | GpFontCollection ** | fontCollection | ) |
Definition at line 1679 of file font.c.
Referenced by test_GdipGetFontCollectionFamilyCount(), test_GdipGetFontCollectionFamilyList(), and test_installedfonts().
| GpStatus WINGDIPAPI GdipNewPrivateFontCollection | ( | GpFontCollection ** | fontCollection | ) |
Definition at line 1096 of file font.c.
Referenced by test_long_name().
| GpStatus WINGDIPAPI GdipPrivateAddFontFile | ( | GpFontCollection * | collection, |
| GDIPCONST WCHAR * | name | ||
| ) |
Definition at line 1137 of file font.c.
Referenced by test_long_name().
| GpStatus WINGDIPAPI GdipPrivateAddMemoryFont | ( | GpFontCollection * | fontCollection, |
| GDIPCONST void * | memory, | ||
| INT | length | ||
| ) |
Definition at line 1509 of file font.c.
Referenced by GdipPrivateAddFontFile().
|
static |
Definition at line 654 of file font.c.
Referenced by find_installed_font().
Definition at line 329 of file font.c.
Referenced by GdipGetFontHeightGivenDPI(), and GdipGetFontSize().
Definition at line 362 of file font.c.
Referenced by GdipGetFontHeightGivenDPI(), and GdipGetFontStyle().
|
inlinestatic |
Definition at line 1344 of file font.c.
Referenced by copy_name_table_string(), and match_name_table_language().
|
static |
Definition at line 632 of file font.c.
Referenced by find_installed_font(), and is_font_installed().
Definition at line 1426 of file font.c.
Referenced by font_name_from_file(), GdipPrivateAddMemoryFont(), and msi_get_font_file_version().
|
static |
Definition at line 1351 of file font.c.
Referenced by get_ttf_nametable_entry(), and load_ttf_name_id().
| WINE_DEFAULT_DEBUG_CHANNEL | ( | gdiplus | ) |
|
static |
Definition at line 121 of file font.c.
Referenced by free_installed_fonts(), and GdipNewInstalledFontCollection().
Definition at line 1220 of file font.c.
Referenced by match_name_table_language().