Commit Graph

1860 Commits (f7ba8e1472d3db3043ed2abf034a92de03640c83)

Author SHA1 Message Date
Akihiro Sagawa 31a6fce46b gdi32: Fix empty glyph handling. 2013-09-23 20:32:28 +02:00
Akihiro Sagawa cc7b39681d gdi32/tests: Add more empty glyph tests. 2013-09-23 20:32:23 +02:00
Michael Stefaniuc 7589bbeee4 gdi32: Avoid using CONST. 2013-09-23 11:53:59 +02:00
Aric Stewart 3f4ef58b0f gdi32: ABC value signs remain the same despite any changes in layout direction or viewport. 2013-09-12 21:31:09 +02:00
Alexandre Julliard 69abf20fcd gdi32: Add a check for overflow in DIB dimensions. 2013-09-11 18:33:06 +02:00
Alexandre Julliard 08e82d4686 gdi32: Add more helpers for converting font sizes to logical coordinates. 2013-09-11 18:33:05 +02:00
Aric Stewart 4a300d2423 gdi32: GetCharWidth32A/W return positive widths for all layouts and various DC transforms. 2013-09-11 18:33:04 +02:00
Aric Stewart 5aa1f6b7a5 Unicode Private Use Area is also rotated by tategaki. 2013-09-09 22:09:58 +02:00
Ralf Habacker 39629a3d35 gdi32: Fixed Rectangle() rotation with GM_ADVANCED graphics mode in dib driver. 2013-09-05 20:58:24 +02:00
Huw Davies 774f57ca24 gdi32/tests: Add vdmx tests. 2013-08-28 16:14:40 +02:00
Huw Davies 7310bdb498 gdi32/tests: Mark some tests as exact. 2013-08-28 16:14:40 +02:00
Huw Davies 2f20032dd3 gdi32: Skip vdmx records with charset == 0. 2013-08-28 16:14:40 +02:00
Huw Davies d089ca67e3 gdi32: Reset ppem to zero if we fail to find a matching height. 2013-08-28 16:14:39 +02:00
Huw Davies bb5aa8862c Revert "gdi32: Do not use VDMX for mapping of negative font heights, based on a test case.".
This reverts commit 7d3cb53cf1.
2013-08-28 16:14:39 +02:00
Huw Davies 18edb16ace gdi32/tests: Add an option to match metrics exactly. 2013-08-28 16:14:38 +02:00
Huw Davies 820c14cafc gdi32/tests: Separate out the metrics checking code. 2013-08-28 16:14:38 +02:00
Huw Davies 2f76829c84 gdi32/tests: Split write_ttf_file() into a resource loader and tmp file writer. 2013-08-28 16:14:37 +02:00
Michael Stefaniuc 4f94913e04 gdi32/tests: Replace FIELD_OFFSET with offsetof for the sake of consistency. 2013-08-19 13:48:43 +02:00
Michael Stefaniuc 14e20162f9 gdi32/tests: Use offsetof instead of sizeof on structs with VLA. 2013-08-19 13:30:43 +02:00
Michael Stefaniuc da425748bb gdi32/tests: Use the standard way of allocating a struct with VLA on the stack. 2013-08-19 13:30:11 +02:00
Alexandre Julliard 87c2581c54 gdi32: Use Microsoft and Unicode encodings in priority for font names. 2013-08-16 19:11:33 +02:00
Ken Thomases 1f2d556373 gdi32: Link against AppKit on the Mac to avoid later crash in the Mac driver. 2013-08-15 16:12:58 +02:00
Akihiro Sagawa 7444c1d6b0 gdi32: Adjust bitmap font height when it has an external leading.
This fixes wine test failures in Japanese locale.
2013-07-31 22:26:56 +02:00
Akihiro Sagawa dc241a8371 gdi32: Add a helper function to get bitmap size. 2013-07-31 22:26:56 +02:00
Akihiro Sagawa 01280cff91 Revert "gdi32: Use the default character when the glyph is missing.".
This reverts commit 15aa8daf64.
It breaks the default character rendering in some bitmap fonts, e.g. Fixedsys.
2013-07-31 22:26:56 +02:00
Huw Davies cf9cb6c118 gdi32: Ignore max_extent if nfit is NULL. 2013-07-22 17:16:04 +02:00
André Hentschel 20bf02910b gdi32: Remove superfluous cast. 2013-07-01 19:51:23 +02:00
Alexandre Julliard 60d29d1d0d gdi32: Don't load linked fonts only to look up control characters. 2013-07-01 19:51:17 +02:00
Alexandre Julliard a973df3324 gdi32: Fix off-by-one error in the extent of arcs when the size is even. 2013-07-01 19:51:14 +02:00
Alexandre Julliard e4300d6165 gdi32: Cache the font smoothing parameters. 2013-06-24 21:52:28 +02:00
Marcus Meissner ff1bd6da35 gdi32: Close handle in mfdrv (Coverity). 2013-06-24 11:46:40 +02:00
Marcus Meissner 1cf9939dc0 gdi32: Close handle in error path (Coverity). 2013-06-24 11:46:34 +02:00
Aric Stewart 37d216cc56 gdi32/tests: Add a test case for vertical fonts enumeration order. 2013-06-20 22:14:35 +02:00
Alexandre Julliard e531306f7a gdi32: Put vertical font families after their horizontal counterpart in the font list. 2013-06-20 22:14:35 +02:00
Alexandre Julliard 102b2785f4 gdi32: Add support for loading name strings in Apple Unicode format. 2013-06-20 22:14:35 +02:00
Alexandre Julliard 3d0f044883 gdi32: Add support for loading name strings in Macintosh format. 2013-06-20 22:14:34 +02:00
Alexandre Julliard b05b637c91 gdi32: Improve font name localization by not requiring a strict language match. 2013-06-20 22:14:32 +02:00
Dmitry Timoshkov 924fad9d25 gdi32: ExtSelectClipRgn(hdc, 0, RGN_DIFF) is supposed to fail. 2013-06-18 10:40:34 +02:00
Dmitry Timoshkov 705a0f0238 gdi32: Scale default GUI fonts to match screen resolution changes. 2013-06-17 19:30:49 +02:00
Dmitry Timoshkov 6834a44dc4 gdi32/tests: Add a test for default font height scaling with screen resolution changes. 2013-06-17 19:30:49 +02:00
Dmitry Timoshkov 288f3be439 gdi32/tests: Skip the bitmap font max width test on not 96 dpi resolutions. 2013-06-17 19:30:48 +02:00
Aric Stewart f5ec65ad8e gdi32: Update Arabic font defaults.
With help from Mosaab Alzoubi <moceap@hotmail.com>.
2013-06-11 18:07:59 +02:00
Aric Stewart ceb81eee20 gdi32: Turn off tategaki if the unicode code point is outside of the rotated ranges. 2013-06-05 20:30:58 +02:00
Matěj Laitl 84c07af48e gdi32: More specific error messages in osmesa opengl initialization. 2013-05-30 20:19:32 +02:00
Aric Stewart 3108f3cf3d gdi32/tests: Do not try to test OS/2 win metrics on non-windows fonts. 2013-05-29 18:12:54 +02:00
Aric Stewart 72f584aef8 gdi32: Fix up glyph metrics for tategaki glyphs. 2013-05-28 19:42:24 +02:00
Aric Stewart cf891b04a0 gdi32: Fix Tategaki rotation.
Tategaki does not ignore orientation rotation, instead it always
rotates affect glyphs by 90 degrees inside their cell.
2013-05-28 19:42:15 +02:00
Akihiro Sagawa 15aa8daf64 gdi32: Use the default character when the glyph is missing. 2013-05-22 19:32:26 +02:00
Akihiro Sagawa f6ea5c8a0f gdi32: Add a helper to get the default character index. 2013-05-22 19:32:23 +02:00
Aric Stewart 1ff63bb893 gdi32: Vertical glyphs can be written tategaki even without a vertical GSUB feature.
It is only based on the presence of the '@' character in the font name.
2013-05-21 12:07:43 +02:00