237 Commits

Author SHA1 Message Date
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
a8ad62aa51 dwrite: Implement ConvertFontToLOGFONT(). 2014-11-07 20:57:04 +09:00
Nikolay Sivov
6ce8cc149e dwrite: Implement GetMetrics() for DWRITE_FONT_METRICS1. 2014-11-07 20:57:02 +09:00
Nikolay Sivov
c8bc7ea849 dwrite: Implement GetMetrics() for fontface. 2014-11-06 15:01:29 +09:00
Nikolay Sivov
90753adaaf dwrite: Use public APIs to get file streams from fontface. 2014-11-06 15:01:27 +09:00
Nikolay Sivov
19869997d4 dwrite: Added a separate helper to fill font metrics structure. 2014-11-06 15:01:25 +09:00
Nikolay Sivov
3fd93c0d1d dwrite: File and factory are always set now for all collections. 2014-11-06 15:01:23 +09:00
Nikolay Sivov
1e0b934139 dwrite: Don't cache fontface instance in font data. 2014-11-06 15:01:20 +09:00
Nikolay Sivov
ad69c7bf6d dwrite: Implement GetFaceNames(). 2014-11-05 15:53:47 +09:00
Nikolay Sivov
c0796ecb49 dwrite: Fix setting oblique simulation on font creation. 2014-11-05 15:53:40 +09:00
Nikolay Sivov
9045ab7f33 dwrite: Remove null checks for family and collection pointers, those are always set now. 2014-11-04 22:49:20 +09:00
Marcus Meissner
a423cbdd5e dwrite: Fixed memory leak on error (Coverity). 2014-11-03 16:33:54 +09:00
Nikolay Sivov
7126921615 dwrite: Turn fixme to trace in Analyze(). 2014-10-30 12:00:13 +09:00
Nikolay Sivov
cae5d19338 dwrite: Implement system font collection as any other font collection. 2014-10-30 12:00:12 +09:00
Nikolay Sivov
6855740a5e dwrite: Reimplement ConvertFontFaceToLOGFONT(). 2014-10-29 20:47:28 +09:00
Nikolay Sivov
1d2993940a dwrite: Set oblique simulation in GetFirstMatchingFont() when appropriate. 2014-10-29 20:47:23 +09:00
Nikolay Sivov
901a65ae42 dwrite: Store simulations flags at font instance level. 2014-10-29 20:47:05 +09:00
Nikolay Sivov
5a5a6bdd92 dwrite: Allow for a weight difference in GetFirstMatchingFont(). 2014-10-29 20:47:02 +09:00
Nikolay Sivov
6706ada9f8 dwrite: Use API-defined type for family count. 2014-10-29 20:46:58 +09:00
Nikolay Sivov
1ab456fde3 dwrite: Implement GetFontFromFontFace(). 2014-10-27 19:02:47 +09:00
Nikolay Sivov
340aa07f60 dwrite: Initialize allocation size for a family before using it. 2014-10-27 19:02:47 +09:00
Nikolay Sivov
fbf2557cd7 dwrite: Implement custom font collections. 2014-10-24 19:58:06 +09:00
Nikolay Sivov
35e9b6d85d dwrite: Pass raw NAME table pointer to table reading code. 2014-10-24 19:58:05 +09:00
Nikolay Sivov
42882f7f75 dwrite: Cache fontface instances at factory level. 2014-10-24 19:58:05 +09:00
Nikolay Sivov
b4dc4e257c dwrite: Remove unused parameter. 2014-10-22 21:02:05 +09:00
Nikolay Sivov
04a237fe18 dwrite: Implement GetInformationalStrings(). 2014-10-21 18:49:14 +09:00
Nikolay Sivov
a088f7d381 dwrite: Implement CreateFontFromLOGFONT() on top of system font collection. 2014-10-20 21:32:47 +09:00
Nikolay Sivov
d02d35a7b1 dwrite: Create IDWriteFontFace2 instance for IDWriteFont. 2014-10-17 14:40:48 +09:00
Nikolay Sivov
460363535e dwrite: Added a helper to get IDWriteFontFace from IDWriteFont. 2014-10-17 14:40:37 +09:00
Nikolay Sivov
4c0ec6700c dwrite: Implement GetUnicodeRanges(). 2014-10-16 13:00:16 +09:00
Nikolay Sivov
d3cdec0e66 dwrite: Use better integer types for cmap helpers. 2014-10-16 13:00:12 +09:00
Nikolay Sivov
9b46e19aa4 dwrite: Implement HasCharacter(). 2014-10-16 13:00:07 +09:00
Nikolay Sivov
d8a66e634c dwrite: Refuse to create IDWriteFontFace with invalid collection index. 2014-10-15 21:31:51 +09:00
Nikolay Sivov
a1ff4f904e dwrite: Update to IDWriteFontFace2. 2014-10-14 17:42:47 +09:00
Nikolay Sivov
1f9ca4775a dwrite: Update to IDWriteFont2. 2014-10-14 17:42:43 +09:00
Aric Stewart
8a5707111a dwrite: Build non-system font collections as a list of font families. 2014-10-09 17:36:22 +02:00
Nikolay Sivov
1e65a32e26 dwrite: Pass stream pointer to OpenType parsing code. 2014-10-08 13:13:38 +02:00
Nikolay Sivov
3b1e8bf824 dwrite: Use public macro to define OpenType tags. 2014-10-07 20:22:02 +02:00
Nikolay Sivov
07dc8b66e4 dwrite: Move font table related data to a separate structure.
Eventually we should get rid of separate allocations on every
TryGetFontTable(), that's not how local loader works. Instead it maps
font file and returns pointers to a mapping, context is always NULL in
this case.
2014-10-07 20:22:02 +02:00
Marcus Meissner
50c8766cce dwrite: Check correct variable for NULL (Coverity). 2014-09-23 13:01:42 +02:00
Marcus Meissner
90774871c8 dwrite: Fixed NULL ptr deref before check (Coverity). 2014-09-22 19:07:30 +02:00
Aric Stewart
15ef946f53 dwrite: Break fontfamily data into its own structure. 2014-09-10 21:36:52 +02:00
Aric Stewart
5d3eaf57ca dwrite: Shift to using localized string for family name. 2014-09-05 13:39:53 +02:00
Aric Stewart
1d6147ec9a dwrite: Shift get_font_properties to opentype. 2014-09-05 13:39:20 +02:00
Aric Stewart
ef173c4312 dwrite: Implement GetFontCollection. 2014-09-04 20:21:03 +02:00
Aric Stewart
383854defa dwrite: Implement a list of font data for IDWriteFontFamily. 2014-09-04 20:21:03 +02:00
Aric Stewart
86af1acff4 dwrite: Check if family is set before releasing. 2014-09-03 17:32:35 +02:00
Aric Stewart
b9cfb927ec dwrite: Break out basic IDWriteFont creation from requiring a logfont. 2014-09-03 17:32:28 +02:00