Commit b8f42522 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

gdiplus: Add support for generic typographic string format.

parent bfa35f37
...@@ -368,6 +368,7 @@ struct GpStringFormat{ ...@@ -368,6 +368,7 @@ struct GpStringFormat{
REAL *tabs; REAL *tabs;
CharacterRange *character_ranges; CharacterRange *character_ranges;
INT range_count; INT range_count;
BOOL generic_typographic;
}; };
struct GpFontCollection{ struct GpFontCollection{
......
...@@ -50,6 +50,7 @@ GpStatus WINGDIPAPI GdipCreateStringFormat(INT attr, LANGID lang, ...@@ -50,6 +50,7 @@ GpStatus WINGDIPAPI GdipCreateStringFormat(INT attr, LANGID lang,
(*format)->digitsub = StringDigitSubstituteUser; (*format)->digitsub = StringDigitSubstituteUser;
(*format)->character_ranges = NULL; (*format)->character_ranges = NULL;
(*format)->range_count = 0; (*format)->range_count = 0;
(*format)->generic_typographic = FALSE;
/* tabstops */ /* tabstops */
(*format)->tabcount = 0; (*format)->tabcount = 0;
(*format)->firsttab = 0.0; (*format)->firsttab = 0.0;
...@@ -386,6 +387,9 @@ GpStatus WINGDIPAPI GdipStringFormatGetGenericTypographic(GpStringFormat **forma ...@@ -386,6 +387,9 @@ GpStatus WINGDIPAPI GdipStringFormatGetGenericTypographic(GpStringFormat **forma
(*format)->hkprefix = HotkeyPrefixNone; (*format)->hkprefix = HotkeyPrefixNone;
(*format)->align = StringAlignmentNear; (*format)->align = StringAlignmentNear;
(*format)->vertalign = StringAlignmentNear; (*format)->vertalign = StringAlignmentNear;
(*format)->generic_typographic = TRUE;
TRACE("%p => %p\n", format, *format);
return Ok; return Ok;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment