Werner Lemberg pushed to branch master at FreeType / FreeType
Commits:
-
205d1ae4
by Werner Lemberg at 2021-07-12T22:03:25+02:00
7 changed files:
- ChangeLog
- devel/ftoption.h
- docs/CHANGES
- include/freetype/config/ftoption.h
- include/freetype/ftdriver.h
- include/freetype/ftmodapi.h
- include/freetype/internal/fttrace.h
Changes:
1 |
+2021-07-12 Werner Lemberg <wl@gnu.org>
|
|
2 |
+ |
|
3 |
+ Small clean-ups for the last few commits.
|
|
4 |
+ |
|
5 |
+ * include/freetype/fttrace.h (afwarp): Removed.
|
|
6 |
+ |
|
1 | 7 |
2021-07-12 David Turner <david@freetype.org>
|
2 | 8 |
|
3 |
- Remove obsolete AF_Angle type and related sources.
|
|
9 |
+ Remove obsolete `AF_Angle` type and related sources.
|
|
4 | 10 |
|
5 |
- Move the af_sort_xxx() functions from afangles.c to afhints.c in
|
|
6 |
- order to get rid of the obsolete angle-related types, macros and
|
|
7 |
- function definitions.
|
|
11 |
+ * src/autofit/afangles.c: File removed. Functions related to
|
|
12 |
+ sorting moved to...
|
|
13 |
+ * src/autofit/afhints.c (af_sort_pos, af_sort_and_quantize_widths):
|
|
14 |
+ This file.
|
|
15 |
+ * src/autofit/afangles.h: File removed.
|
|
16 |
+ * src/autofit/aftypes.h: Updated.
|
|
17 |
+ * src/autofit/autofit.c: Updated.
|
|
8 | 18 |
|
9 |
- * src/autofit/*: Remove code.
|
|
19 |
+ * src/autofit/rules.mk (AUTOF_DRV_SRC): Updated.
|
|
10 | 20 |
|
11 | 21 |
2021-07-12 David Turner <david@freetype.org>
|
12 | 22 |
|
13 | 23 |
Remove experimental auto-hinting 'warp' mode.
|
14 | 24 |
|
15 |
- This feature was always experimental, and probably nevery worked
|
|
16 |
- properly. This patch completely removes it from the source code,
|
|
25 |
+ This feature was always experimental, and probably never worked
|
|
26 |
+ properly. This patch completely removes it from the source code,
|
|
17 | 27 |
except for a documentation block describing it for historical
|
18 |
- purpose.
|
|
28 |
+ purposes.
|
|
29 |
+ |
|
30 |
+ * devel/ftoption.h, include/freetype/config/ftoption.h: Remove
|
|
31 |
+ `AF_CONFIG_OPTION_USE_WARPER`.
|
|
32 |
+ |
|
33 |
+ * include/freetype/ftdriver.h: Document 'warping' property as
|
|
34 |
+ obsolete.
|
|
19 | 35 |
|
20 |
- * devel/ftoption.h: Remove AF_CONFIG_OPTION_USE_WARPER.
|
|
21 |
- * include/freetype/config/ftoption.h: Remove AF_CONFIG_OPTION_USE_WARPER.
|
|
22 |
- * include/freetype/ftdriver.h: Document 'warping' property as obsolete.
|
|
23 |
- * src/autofit/*: Remove any warp mode related code.
|
|
36 |
+ * src/autofit/afwarp.c, src/autofit/afwarp.h: Files removed.
|
|
37 |
+ * src/autofit/*: Remove any code related to warp mode.
|
|
24 | 38 |
|
25 | 39 |
2021-07-12 David Turner <david@freetype.org>
|
26 | 40 |
|
27 |
- Remove experimental "Latin2" writing system (FT_OPTION_AUTOFIT2)
|
|
41 |
+ Remove experimental 'Latin2' writing system (`FT_OPTION_AUTOFIT2`).
|
|
28 | 42 |
|
29 | 43 |
This code has always been experimental and was never compiled anyway
|
30 |
- (FT_OPTION_AUTOFIT2 does not appear in ftoption.h or even any of our
|
|
31 |
- build files).
|
|
32 |
- |
|
33 |
- * include/freetype/internal/fttrace.h: Remove 'FT_TRACE_DEF( aflatin2 )'.
|
|
34 |
- * src/autofit/aflatin2.[hc]: Removed.
|
|
35 |
- * src/autofit/afloader.c: Remove undocumented hook to activate Latin2 system.
|
|
36 |
- * src/autofit/afstyles.h: Remove ltn2_dflt style definition.
|
|
37 |
- * src/autofit/afwrtsys.h: Remove LATIN2 writing system definition.
|
|
44 |
+ (`FT_OPTION_AUTOFIT2` does not appear in `ftoption.h` or even any of
|
|
45 |
+ our build files).
|
|
46 |
+ |
|
47 |
+ * include/freetype/internal/fttrace.h (aflatin2): Removed.
|
|
48 |
+ * src/autofit/aflatin2.h, src/autofit/aflatin2.c: Files removed.
|
|
49 |
+ * src/autofit/afloader.c: Remove undocumented hook to activate
|
|
50 |
+ Latin2 system.
|
|
51 |
+ * src/autofit/afstyles.h: Remove `ltn2_dflt` style definition.
|
|
52 |
+ * src/autofit/afwrtsys.h: Remove `LATIN2` writing system definition.
|
|
38 | 53 |
* src/autofit/autofit.c: Updated.
|
39 | 54 |
|
40 | 55 |
2021-07-05 Werner Lemberg <wl@gnu.org>
|
... | ... | @@ -105,8 +105,7 @@ FT_BEGIN_HEADER |
105 | 105 |
*
|
106 | 106 |
* ```
|
107 | 107 |
* FREETYPE_PROPERTIES=truetype:interpreter-version=35 \
|
108 |
- * cff:no-stem-darkening=1 \
|
|
109 |
- * autofitter:warping=1
|
|
108 |
+ * cff:no-stem-darkening=1
|
|
110 | 109 |
* ```
|
111 | 110 |
*
|
112 | 111 |
*/
|
... | ... | @@ -72,6 +72,9 @@ CHANGES BETWEEN 2.10.4 and 2.11.0 |
72 | 72 |
|
73 | 73 |
This work was Priyesh Kumar's GSoC 2020 project.
|
74 | 74 |
|
75 |
+ - The experimental 'warp' mode (AF_CONFIG_OPTION_USE_WARPER) for the
|
|
76 |
+ auto-hinter has been removed.
|
|
77 |
+ |
|
75 | 78 |
- The smooth rasterizer performance has been improved by >10%.
|
76 | 79 |
|
77 | 80 |
- PCF bitmap fonts compressed with LZW (these are usually files with
|
... | ... | @@ -105,8 +105,7 @@ FT_BEGIN_HEADER |
105 | 105 |
*
|
106 | 106 |
* ```
|
107 | 107 |
* FREETYPE_PROPERTIES=truetype:interpreter-version=35 \
|
108 |
- * cff:no-stem-darkening=1 \
|
|
109 |
- * autofitter:warping=1
|
|
108 |
+ * cff:no-stem-darkening=1
|
|
110 | 109 |
* ```
|
111 | 110 |
*
|
112 | 111 |
*/
|
... | ... | @@ -53,10 +53,10 @@ FT_BEGIN_HEADER |
53 | 53 |
* reasons.
|
54 | 54 |
*
|
55 | 55 |
* Available properties are @increase-x-height, @no-stem-darkening
|
56 |
- * (experimental), @darkening-parameters (experimental), @warping
|
|
57 |
- * (experimental), @glyph-to-script-map (experimental), @fallback-script
|
|
58 |
- * (experimental), and @default-script (experimental), as documented in
|
|
59 |
- * the @properties section.
|
|
56 |
+ * (experimental), @darkening-parameters (experimental),
|
|
57 |
+ * @glyph-to-script-map (experimental), @fallback-script (experimental),
|
|
58 |
+ * and @default-script (experimental), as documented in the @properties
|
|
59 |
+ * section.
|
|
60 | 60 |
*
|
61 | 61 |
*/
|
62 | 62 |
|
... | ... | @@ -1165,15 +1165,15 @@ FT_BEGIN_HEADER |
1165 | 1165 |
* **Obsolete**
|
1166 | 1166 |
*
|
1167 | 1167 |
* This property was always experimental and probably never worked
|
1168 |
- * correctly. It was entirely removed from the FreeType 2 sources.
|
|
1169 |
- * This entry is only here for historical reference.
|
|
1168 |
+ * correctly. It was entirely removed from the FreeType~2 sources. This
|
|
1169 |
+ * entry is only here for historical reference.
|
|
1170 | 1170 |
*
|
1171 |
- * Warping only works in 'normal' auto-hinting mode replacing it. The
|
|
1172 |
- * idea of the code is to slightly scale and shift a glyph along the
|
|
1171 |
+ * Warping only worked in 'normal' auto-hinting mode replacing it. The
|
|
1172 |
+ * idea of the code was to slightly scale and shift a glyph along the
|
|
1173 | 1173 |
* non-hinted dimension (which is usually the horizontal axis) so that as
|
1174 |
- * much of its segments are aligned (more or less) to the grid. To find
|
|
1174 |
+ * much of its segments were aligned (more or less) to the grid. To find
|
|
1175 | 1175 |
* out a glyph's optimal scaling and shifting value, various parameter
|
1176 |
- * combinations are tried and scored.
|
|
1176 |
+ * combinations were tried and scored.
|
|
1177 | 1177 |
*
|
1178 | 1178 |
* @since:
|
1179 | 1179 |
* 2.6
|
... | ... | @@ -508,8 +508,7 @@ FT_BEGIN_HEADER |
508 | 508 |
*
|
509 | 509 |
* ```
|
510 | 510 |
* FREETYPE_PROPERTIES=truetype:interpreter-version=35 \
|
511 |
- * cff:no-stem-darkening=0 \
|
|
512 |
- * autofitter:warping=1
|
|
511 |
+ * cff:no-stem-darkening=0
|
|
513 | 512 |
* ```
|
514 | 513 |
*
|
515 | 514 |
* @inout:
|
... | ... | @@ -160,7 +160,6 @@ FT_TRACE_DEF( afhints ) |
160 | 160 |
FT_TRACE_DEF( afmodule )
|
161 | 161 |
FT_TRACE_DEF( aflatin )
|
162 | 162 |
FT_TRACE_DEF( afshaper )
|
163 |
-FT_TRACE_DEF( afwarp )
|
|
164 | 163 |
|
165 | 164 |
/* SDF components */
|
166 | 165 |
FT_TRACE_DEF( sdf ) /* signed distance raster for outlines (ftsdf.c) */
|