Commit Graph

453 Commits

Author SHA1 Message Date
Nikolay Sivov f68f63152f dwrite: Set cluster length together with other metrics. 2015-06-19 17:01:12 +09:00
Nikolay Sivov 5df702af9e dwrite/tests: Initial test for GetBaseline(). 2015-06-18 21:41:02 +09:00
Nikolay Sivov 0b84556f8d dwrite/tests: Initial test for GetLineMetrics(). 2015-06-18 21:41:02 +09:00
Nikolay Sivov 0ec13316a7 dwrite: Validate format property values. 2015-06-16 16:50:22 +09:00
Nikolay Sivov b7fb00e9aa dwrite: Fix the way drawing effects are reported for inline objects. 2015-06-15 15:29:04 +09:00
Nikolay Sivov 6655b0c93a dwrite: Call GetCount() once when looking for family name. 2015-06-15 15:29:04 +09:00
Nikolay Sivov 6fd4f963f6 dwrite: Initial implementation of Draw() for trimming sign. 2015-06-15 15:29:03 +09:00
Nikolay Sivov 6304a0f50a dwrite: Check format directions in CreateEllipsisTrimmingSign(). 2015-06-15 15:29:03 +09:00
Nikolay Sivov de2ae5e1b8 dwrite: Fix splitted range length, initial test for GetMetrics(). 2015-06-15 15:29:03 +09:00
Nikolay Sivov 4addd20aaa dwrite/tests: Test to show that GetCurrentTransform/GetPixelsPerDip are not really used from Draw(). 2015-06-15 15:29:03 +09:00
Nikolay Sivov eca362bd76 dwrite: Fix problems with outline conversion and reporting. 2015-06-10 15:26:10 +09:00
Alexandre Julliard 3494fb7f72 kernel32: Avoid resolving imports against the advapi32 forwards. 2015-06-10 15:26:05 +09:00
Nikolay Sivov 1a2d520ee1 dwrite: Exit earlier when setting property for zero length range. 2015-06-09 22:09:57 +09:00
Nikolay Sivov ffeba2348a dwrite: Use [0,~0u) as initial range for strikethrough settings. 2015-06-09 22:09:57 +09:00
Nikolay Sivov 9d74a11efb dwrite/tests: A test for case-sensitivity of SetFontFamilyName. 2015-06-09 22:09:57 +09:00
Nikolay Sivov 7be1159479 dwrite: Validate per-range attribute values. 2015-06-08 15:47:41 +09:00
Nikolay Sivov 496aec11e5 dwrite: Use [0,~0u) as initial text range. 2015-06-08 15:47:39 +09:00
Nikolay Sivov fc3ec14404 dwrite/tests: Some tests for setting per-range layout properties. 2015-06-05 18:38:43 +09:00
Nikolay Sivov b8e3fbe0c1 dwrite: Report strikethrough ranges to renderer. 2015-06-05 18:38:38 +09:00
Nikolay Sivov e31881a6c9 dwrite: Store strikethrough settings in a separate list. 2015-06-05 18:38:32 +09:00
Nikolay Sivov 6d87a451a2 dwrite: Added a range data header to distinguish range kinds. 2015-06-05 18:38:29 +09:00
Nikolay Sivov 72dcc4d437 dwrite/tests: Test actual strings being reported to a renderer. 2015-06-05 18:38:26 +09:00
Nikolay Sivov 6f99f196fc dwrite: Fix potential null pointer access in GetFontCollection() (Coverity). 2015-06-04 15:55:29 +09:00
Nikolay Sivov 9351596538 dwrite: Fix potential null pointer dereference in GetInlineObject() (Coverity). 2015-06-02 20:53:43 +09:00
Nikolay Sivov c230b32777 dwrite: Handle GetBreakConditions() failure. 2015-06-01 14:48:33 +09:00
Nikolay Sivov 10ff42097f dwrite: Handle inline object GetMetrics() failure. 2015-06-01 14:48:29 +09:00
Nikolay Sivov fe2f6b77a8 dwrite: Properly report drawing effect in DrawGlyphRun()/DrawInlineObject(). 2015-06-01 14:48:25 +09:00
Nikolay Sivov 89e1a5fb75 dwrite: Fix wrong run data reported to a renderer. 2015-06-01 14:48:21 +09:00
Nikolay Sivov 2099b109ea dwrite: Report inline objects in Draw(). 2015-06-01 14:48:15 +09:00
Nikolay Sivov 112d20e89c dwrite: Forward GetGdiCompatibleGlyphPlacements() to corresponding font methods. 2015-06-01 14:48:08 +09:00
Nikolay Sivov a921941a17 dwrite: Implement GetGlyphOrientationTransform(). 2015-05-29 15:00:03 +09:00
Nikolay Sivov 39d71c52ef dwrite/tests: Some tests for control characters handling. 2015-05-27 19:35:00 +09:00
Nikolay Sivov 76577c8e4b dwrite: Fix breakpoint update logic. 2015-05-25 21:43:17 +09:00
Nikolay Sivov 90ed96a766 dwrite: Fix splitting by bidi levels. 2015-05-22 18:04:45 +09:00
Nikolay Sivov f4790714fe dwrite: Added IDWriteGlyphRunAnalysis stub. 2015-05-19 22:57:43 +09:00
Nikolay Sivov 38775875c7 dwrite: Initial implementation of Draw(). 2015-05-05 23:15:30 +09:00
Nikolay Sivov 47224510b4 dwrite/tests: Test character spacing applied to cluster metrics. 2015-05-04 20:10:48 +09:00
Nikolay Sivov 4fa8d3a444 dwrite: Improve run tracing format. 2015-05-01 17:39:22 +09:00
Nikolay Sivov 1d815a2801 dwrite: Fix typo in SetStrikethrough(). 2015-05-01 17:39:20 +09:00
Nikolay Sivov 14158a71db dwrite: Implement ApplyCharacterSpacing(). 2015-04-27 15:10:29 +09:00
Nikolay Sivov a457b5e069 dwrite: Trace text strings up to specified length. 2015-04-23 20:43:20 +09:00
Nikolay Sivov d7a40fd298 dwrite: Track a run this cluster came from. 2015-04-23 20:43:20 +09:00
Nikolay Sivov 68edc995c5 dwrite: Set some more cluster properties. 2015-04-23 20:43:20 +09:00
Nikolay Sivov 0c27e5cd66 dwrite: Fix script position reported with SetScriptAnalysis(). 2015-04-21 23:45:00 +09:00
Nikolay Sivov e0403efc21 dwrite: Added a helper to get source text pointer. 2015-04-21 23:44:59 +09:00
Julius Schwartzenberg 20aee0673d dwrite: Font search is case insensitive. 2015-04-13 15:49:38 +09:00
Nikolay Sivov 551f0a157f dwrite: Return S_OK from AnalyzeNumberSubstitution(). 2015-04-07 15:10:38 +09:00
Nikolay Sivov b16432f2c2 dwrite: Add cluster metrics entry for inline objects too. 2015-04-06 12:09:03 +09:00
Nikolay Sivov 0c116d7736 dwrite: Fix cluster width and length calculation. 2015-04-03 20:51:46 +09:00
Nikolay Sivov 7b664095aa dwrite: Update to IDWriteRenderingParams2. 2015-03-31 21:36:28 +09:00
Nikolay Sivov 9ec6fd85c4 dwrite: Return CreateStreamFromKey() failure code from Analyze(). 2015-03-30 19:10:31 +09:00
Nikolay Sivov 8303199cbe dwrite: Initial implementation of DetermineMinWidth(). 2015-03-30 19:10:27 +09:00
Nikolay Sivov 93a21a8b57 dwrite: Pass sideways run flag to shaping methods. 2015-03-27 00:12:07 +09:00
Nikolay Sivov 437fb07438 dwrite: Forward IDWriteTextLayout::GetMetrics() to IDWriteTextLayout2::GetMetrics(). 2015-03-24 18:16:42 +09:00
Nikolay Sivov b58528fa49 dwrite/tests: Another test for cluster metrics and inline objects. 2015-03-18 19:36:43 +09:00
Nikolay Sivov da1d6097ed dwrite: Remove unused helper. 2015-03-18 19:36:39 +09:00
Nikolay Sivov fa1fe44c34 dwrite: Implement SetFontFallback(). 2015-03-17 14:19:42 +09:00
Nikolay Sivov c2c3001387 dwrite: Allow to query for IDWriteTextFormat1 from layout. 2015-03-17 14:19:36 +09:00
Nikolay Sivov bd3069c0c1 dwrite/tests: Use separate factory for each test in layout tests. 2015-03-17 14:19:30 +09:00
Nikolay Sivov 947f8e64d5 dwrite: Initially format and layout don't have a fallback set. 2015-03-17 14:19:22 +09:00
Nikolay Sivov 7e480d3c6d dwrite: Implement GetKerningPairAdjustments(). 2015-03-16 21:42:40 +09:00
Nikolay Sivov 23c2ef2fcd dwrite: Implement HasKerningPairs(). 2015-03-16 21:42:40 +09:00
Nikolay Sivov 2933e8666f dwrite: Fix invalid parameter handling in GetGlyphIndices(). 2015-03-16 21:42:39 +09:00
Nikolay Sivov 5eccb1322d dwrite: Actually return NULL names pointer and error code when failed to read them. 2015-03-16 21:42:39 +09:00
Nikolay Sivov e6ce0e9f26 dwrite: Fix GetClusterMetrics() return value. 2015-03-13 21:57:29 +09:00
Nikolay Sivov 8a46a01008 dwrite: Store vertical orientation property. 2015-03-13 21:57:28 +09:00
Nikolay Sivov 672aae654e dwrite: Store pair kerning range attribute. 2015-03-13 21:57:28 +09:00
Nikolay Sivov 985bff76be dwrite: Fix excessive refcount increment when setting interface pointers as range attributes. 2015-03-12 13:56:35 +09:00
Nikolay Sivov c1ecf862a4 dwrite: Make a deep copy of family name string (Valgrind). 2015-03-12 13:56:28 +09:00
Nikolay Sivov 3cfbfeca2b dwrite/tests: Place test font file in temporary location, make sure it's deleted after the test. 2015-02-24 14:17:01 +09:00
Nikolay Sivov eb2a4ec5f4 dwrite/tests: Test default colors of render target memory HDC. 2015-02-23 15:26:03 +09:00
Nikolay Sivov 0067be66bb dwrite/tests: Fixed font instance leak. 2015-02-23 15:26:02 +09:00
Nikolay Sivov 6ff14a9213 dwrite: Use FreeType CMAP cache system instead of parsing tables manually. 2015-02-23 15:26:02 +09:00
Nikolay Sivov 5a318c3e8b dwrite: Set facename field of a LOGFONT in ConvertFontFaceToLOGFONT(). 2015-02-19 17:50:56 +09:00
Nikolay Sivov 5196be7706 dwrite: Fix error code returned by GetFontFromFontFace(). 2015-02-19 17:50:51 +09:00
Nikolay Sivov 980c65f126 dwrite: Use vertical variants in GetGlyphs() when appropriate. 2015-02-18 23:22:19 +09:00
Nikolay Sivov c949ff5d24 dwrite: Implement GetGlyphCount(). 2015-02-05 22:19:06 +09:00
Nikolay Sivov 34a5cd2086 dwrite/tests: Fix couple of leaks when creating test font instance. 2015-02-04 21:42:39 +09:00
Nikolay Sivov afd1911cd7 dwrite: Improve error handling during font collection creation. 2015-02-04 21:42:35 +09:00
Nikolay Sivov 77189de8b7 dwrite: Simplify collection_find_family(). 2015-02-04 21:42:11 +09:00
Nikolay Sivov 8f9bca9103 dwrite: Implement GetCaretMetrics(). 2015-02-03 20:53:07 +09:00
Nikolay Sivov fbeb829584 dwrite: Forward GetGdiCompatibleMetrics() to newer call. 2015-02-03 20:52:58 +09:00
Nikolay Sivov 40d9a2b6d2 dwrite: Make sure we don't have duplicates in locale/value pairs for font names. 2015-01-26 12:06:20 +01:00
Nikolay Sivov 6b0623fb2f dwrite: Initial implementation of GetTypographicFeatures(). 2015-01-26 12:06:18 +01:00
Nikolay Sivov 711b9f0414 dwrite: Initial implementation of GetGlyphPlacements(). 2015-01-22 13:42:34 +01:00
Nikolay Sivov 0258e5319b dwrite/tests: Basic test for GetTypographicFeatures(). 2015-01-21 15:29:17 +01:00
Nikolay Sivov aef50786fb dwrite/tests: Additional test for Draw(). 2015-01-20 17:52:20 +01:00
Nikolay Sivov e292385fcd dwrite: Implement GetClusterMetrics(). 2015-01-20 17:52:18 +01:00
Nikolay Sivov 0ee49eb4c8 dwrite: Initial support of cluster metrics computation. 2015-01-20 17:52:16 +01:00
Nikolay Sivov 13083dcd52 dwrite: Use gdi-compatible placements in case of gdi-compatible layouts. 2015-01-09 11:50:22 +01:00
Nikolay Sivov 05fd95e5e4 dwrite: Store additional properties for gdi-compatible layouts. 2015-01-09 11:50:20 +01:00
Nikolay Sivov b03d4c7a8f dwrite: Set glyph advances and offsets for each run. 2015-01-08 13:12:18 +01:00
Nikolay Sivov b49a71416d dwrite: Store cluster map and glyph indices for each run. 2015-01-08 13:12:16 +01:00
Nikolay Sivov fdd8e011ed dwrite: Create fontface instance for each run. 2015-01-07 17:39:03 +01:00
Nikolay Sivov de09e9b94e dwrite/tests: Fix buffer overflow when filling test string. 2015-01-06 18:19:31 +01:00
Nikolay Sivov 35a91741d3 dwrite: Move range bounds check to an attribute setting helper. 2015-01-06 12:34:46 +01:00
Nikolay Sivov 48d84eedb5 dwrite: Unify temp value variable name. 2015-01-06 12:34:41 +01:00
Nikolay Sivov 9661f129e0 dwrite: Support family name attribute for ranges. 2015-01-06 12:34:37 +01:00
Nikolay Sivov ed398419bc dwrite: Fix range comparison by locale name. 2015-01-06 12:34:30 +01:00
Nikolay Sivov 102d8936cc dwrite: Release FreeType resources on dll unload. 2015-01-05 21:37:37 +01:00
Francois Gouget 3b87dbe062 dwrite: Make free_glyph_outline() static. 2015-01-05 20:17:22 +01:00
Nikolay Sivov aecec3847a dwrite: Store locale name for each text range. 2015-01-05 16:29:11 +01:00
Nikolay Sivov 8fc7e175dc dwrite: Set string pointer in run description when splitting by bidi levels. 2014-12-30 15:54:18 +01:00
Nikolay Sivov e7947359fe dwrite: Cleanup layout instance creation, handle memory allocation failures. 2014-12-30 15:54:16 +01:00
Nikolay Sivov cb4e881963 dwrite: Update breakpoints in case of inline objects. 2014-12-28 19:07:41 +01:00
Nikolay Sivov 83aafaaae8 dwrite: Store nominal breakpoint data in layout. 2014-12-28 19:07:38 +01:00
Nikolay Sivov ac4c85ea87 dwrite: Split runs according to BiDi levels. 2014-12-28 19:07:31 +01:00
Nikolay Sivov 894737ac55 dwrite: Split each text range into runs by script. 2014-12-23 15:31:10 +01:00
Nikolay Sivov 00ea0b72b6 dwrite: Added stub EUDC font collection. 2014-12-17 13:05:18 +01:00
Nikolay Sivov 8dfe0ff251 dwrite: Release system collection pointer after using it, not before. 2014-12-16 16:31:41 +01:00
Nikolay Sivov f4e3005645 dwrite: Font collection pointer is never null when creating text format. 2014-12-16 16:31:34 +01:00
Nikolay Sivov bbe6655280 dwrite: Support outlines with oblique simulation. 2014-12-16 16:31:30 +01:00
Nikolay Sivov 17a24679b4 dwrite: Initial GetGlyphRunOutline() implementation. 2014-12-15 13:41:16 +01:00
Nikolay Sivov 44bb2ba295 dwrite: Block creation of unsupported face types. 2014-12-11 16:41:14 +01:00
Nikolay Sivov de741ffe52 dwrite: Update to IDWriteFactory2. 2014-12-09 18:57:06 +01:00
Nikolay Sivov 415e0b3f54 dwrite: Implement GetDesignGlyphAdvances(). 2014-12-09 18:57:04 +01:00
Nikolay Sivov 730b2f4c66 dwrite: Implement IsMonospacedFont(). 2014-12-09 18:57:01 +01:00
Nikolay Sivov 9978bfb6d7 dwrite: Partially implement GetDesignGlyphMetrics(). 2014-12-08 16:48:45 +01:00
Nikolay Sivov 517185fcf3 dwrite: Set font style to oblique when oblique simulation, was requested. 2014-12-08 16:41:17 +01:00
Francois Gouget d1040304b2 dwrite: Fix compilation on systems that don't support nameless unions. 2014-12-05 20:47:53 +01:00
Francois Gouget eaf4f695d1 dwrite: Add a trailing '\n' to a FIXME(). 2014-12-05 20:47:50 +01:00
Francois Gouget ea932fbcc1 Assorted spelling fixes. 2014-12-05 20:47:45 +01:00
Nikolay Sivov fe81deae10 dwrite: Make fonts installed in Fonts dir accessible through system collection. 2014-12-02 15:02:43 +01:00
Marcus Meissner 2bfb3ef624 dwrite: Initialize a variable (Coverity). 2014-12-01 11:00:17 +01:00
Marcus Meissner c7e9ffa70a dwrite: Remove unused hresult assignment (Coverity). 2014-12-01 11:00:16 +01:00
Marcus Meissner 6ea025fc7f dwrite: Avoid leaking filemapping (Coverity). 2014-12-01 11:00:15 +01:00
Nikolay Sivov 82e66b4b47 dwrite: Fix lineGap metric using 'hhea' table values. 2014-11-28 17:04:45 +01:00
Nikolay Sivov 188bfd6fd4 dwrite: Respect typographic metrics when font instructs us to. 2014-11-28 17:04:43 +01:00
Nikolay Sivov 9afd55072f dwrite: Estimate x-height and cap height metrics if they're missing. 2014-11-27 11:11:24 +01:00
Nikolay Sivov 298f08d602 dwrite/tests: Fix some test failures on older dwrite versions. 2014-11-27 11:11:21 +01:00
Nikolay Sivov 4b38ced13c dwrite: Hide factory vtable selection in init helper. 2014-11-27 11:11:19 +01:00
Nikolay Sivov c5af130e92 dwrite: Remove DLL_WINE_PREATTACH case, native module can't be used. 2014-11-27 11:11:18 +01:00
Nikolay Sivov 31496c600d dwrite: Use stream fragment context when reading font tables. 2014-11-27 11:11:16 +01:00
Nikolay Sivov 416527a6ad dwrite: Use file mapping for local file stream. 2014-11-26 17:35:13 +01:00
Nikolay Sivov 87a9b51ccc dwrite: Use usWin* values from OS/2 table as font ascent/descent. 2014-11-25 16:35:03 +01:00
Nikolay Sivov b8db7f6a04 dwrite: Update to IDWriteBitmapRenderTarget1. 2014-11-25 16:35:02 +01:00
Nikolay Sivov 7ae3426ea4 dwrite: Forward more font methods to fontface. 2014-11-25 16:35:01 +01:00
André Hentschel 2b3c5d6194 dwrite: Remove unused code (Clang). 2014-11-25 13:47:39 +01:00
Nikolay Sivov a77b9ed0c7 dwrite: Load freetype on module attach, create one FT_Face per fontface. 2014-11-21 18:10:51 +09:00
Nikolay Sivov 9db50228dd dwrite: Implement SetCurrentTransform() for bitmap render target. 2014-11-19 23:36:35 +09:00
Nikolay Sivov c457d0f107 dwrite: Handle Unicode platform when looking for name record codepage. 2014-11-19 23:36:35 +09:00
Nikolay Sivov e6cd0f7d8c dwrite/tests: Some tests for ReadFileFragment(). 2014-11-19 00:38:58 +09:00
Nikolay Sivov f16960aeb8 dwrite: Implement GetLastWriteTime() for local stream. 2014-11-19 00:38:56 +09:00
Nikolay Sivov 6564417082 dwrite: Remove null pointer checks that can't fail. 2014-11-18 22:11:29 +09:00
Nikolay Sivov 8b769332e2 dwrite: Reuse local file stream instances. 2014-11-17 19:30:19 +09:00
Nikolay Sivov 53fb0cc711 dwrite: Implement compatible reference key for local files and remaining loader methods. 2014-11-17 19:30:17 +09:00
Nikolay Sivov 53209e7017 dwrite: Remove OpenType language id from cache. 2014-11-10 19:25:41 +09:00
Nikolay Sivov a8ad62aa51 dwrite: Implement ConvertFontToLOGFONT(). 2014-11-07 20:57:04 +09:00
Nikolay Sivov 49c8e98f74 dwrite: Respond to IID_IDWriteTextLayout1 too. 2014-11-07 20:57:03 +09:00
Nikolay Sivov a714f0fe75 dwrite: Added a basic test for TryGetFontTable(). 2014-11-07 20:57:02 +09:00