shithub: freetype+ttf2subf

Download patch

ref: e12a471f6af23257f4c406feb8745eb12915fa7d
parent: 2ee71f1f01d1a148a5fed9712e20c628ac9b4671
author: Werner Lemberg <[email protected]>
date: Fri May 12 10:20:43 EDT 2006

* src/tools/docmaker/tohtml.py (html_header_1): Use `utf-8' charset.

Convert some files to UTF-8.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
 	boundary markers.
 	* src/tools/docmaker/content.py (re_field): Allow `.' in field names
 	(but not at the beginning or end).
+	* src/tools/docmaker/tohtml.py (html_header_1): Use `utf-8' charset.
 
 	* include/freetype/*: Many minor documentation improvements (adding
 	links, spelling errors, etc.).
--- a/ChangeLog.20
+++ b/ChangeLog.20
@@ -1638,7 +1638,7 @@
 	is now slower, but proves a point :-)
 
 	* src/raster/ftraster.c, src/smooth/ftgrays.c, src/base/ftbbox.c:
-	Fixed the bezier stack depths.
+	Fixed the Bézier stack depths.
 
 	* src/base/ftcalc.c (FT_MulFix): Minor rounding fix.
 
--- a/ChangeLog.21
+++ b/ChangeLog.21
@@ -6503,7 +6503,7 @@
 	well as providing an autoconf fragment provided by Lars Clausen.
 
 	* src/smooth/ftgrays.c (gray_render_conic): Fixed small bug that
-	prevented bezier arcs with negative vertical coordinates to be
+	prevented Bézier arcs with negative vertical coordinates to be
 	rendered appropriately.
 
 2002-12-02  Antoine Leca  <[email protected]>
--- a/include/freetype/ftbbox.h
+++ b/include/freetype/ftbbox.h
@@ -61,7 +61,7 @@
   /*    Computes the exact bounding box of an outline.  This is slower     */
   /*    than computing the control box.  However, it uses an advanced      */
   /*    algorithm which returns _very_ quickly when the two boxes          */
-  /*    coincide.  Otherwise, the outline Bezier arcs are walked over to   */
+  /*    coincide.  Otherwise, the outline Bézier arcs are walked over to   */
   /*    extract their extrema.                                             */
   /*                                                                       */
   /* <Input>                                                               */
@@ -87,3 +87,9 @@
 
 
 /* END */
+
+
+/* Local Variables: */
+/* coding: utf-8    */
+/* End:             */
+ 
\ No newline at end of file
--- a/include/freetype/ftglyph.h
+++ b/include/freetype/ftglyph.h
@@ -354,10 +354,10 @@
   /*                                                                       */
   /* <Description>                                                         */
   /*    Return a glyph's `control box'.  The control box encloses all the  */
-  /*    outline's points, including Bezier control points.  Though it      */
+  /*    outline's points, including Bézier control points.  Though it      */
   /*    coincides with the exact bounding box for most glyphs, it can be   */
   /*    slightly larger in some situations (like when rotating an outline  */
-  /*    which contains Bezier outside arcs).                               */
+  /*    which contains Bézier outside arcs).                               */
   /*                                                                       */
   /*    Computing the control box is very fast, while getting the bounding */
   /*    box can take much more time as it needs to walk over all segments  */
@@ -568,3 +568,8 @@
 
 
 /* END */
+
+
+/* Local Variables: */
+/* coding: utf-8    */
+/* End:             */
--- a/include/freetype/ftimage.h
+++ b/include/freetype/ftimage.h
@@ -318,11 +318,11 @@
   /*                                                                       */
   /*    tags       :: A pointer to an array of `n_points' chars, giving    */
   /*                  each outline point's type.  If bit 0 is unset, the   */
-  /*                  point is `off' the curve, i.e., a Bezier control     */
+  /*                  point is `off' the curve, i.e., a Bézier control     */
   /*                  point, while it is `on' when set.                    */
   /*                                                                       */
   /*                  Bit 1 is meaningful for `off' points only.  If set,  */
-  /*                  it indicates a third-order Bezier arc control point; */
+  /*                  it indicates a third-order Bézier arc control point; */
   /*                  and a second-order control point if unset.           */
   /*                                                                       */
   /*    contours   :: An array of `n_contours' shorts, giving the end      */
@@ -526,7 +526,7 @@
   /*    A function pointer type use to describe the signature of a `conic  */
   /*    to' function during outline walking/decomposition.                 */
   /*                                                                       */
-  /*    A `conic to' is emitted to indicate a second-order Bezier arc in   */
+  /*    A `conic to' is emitted to indicate a second-order Bézier arc in   */
   /*    the outline.                                                       */
   /*                                                                       */
   /* <Input>                                                               */
@@ -557,12 +557,12 @@
   /*    A function pointer type used to describe the signature of a `cubic */
   /*    to' function during outline walking/decomposition.                 */
   /*                                                                       */
-  /*    A `cubic to' is emitted to indicate a third-order Bezier arc.      */
+  /*    A `cubic to' is emitted to indicate a third-order Bézier arc.      */
   /*                                                                       */
   /* <Input>                                                               */
-  /*    control1 :: A pointer to the first Bezier control point.           */
+  /*    control1 :: A pointer to the first Bézier control point.           */
   /*                                                                       */
-  /*    control2 :: A pointer to the second Bezier control point.          */
+  /*    control2 :: A pointer to the second Bézier control point.          */
   /*                                                                       */
   /*    to       :: A pointer to the target end point.                     */
   /*                                                                       */
@@ -588,7 +588,7 @@
   /*                                                                       */
   /* <Description>                                                         */
   /*    A structure to hold various function pointers used during outline  */
-  /*    decomposition in order to emit segments, conic, and cubic Beziers, */
+  /*    decomposition in order to emit segments, conic, and cubic Béziers, */
   /*    as well as `move to' and `close to' operations.                    */
   /*                                                                       */
   /* <Fields>                                                              */
@@ -596,9 +596,9 @@
   /*                                                                       */
   /*    line_to  :: The segment emitter.                                   */
   /*                                                                       */
-  /*    conic_to :: The second-order Bezier arc emitter.                   */
+  /*    conic_to :: The second-order Bézier arc emitter.                   */
   /*                                                                       */
-  /*    cubic_to :: The third-order Bezier arc emitter.                    */
+  /*    cubic_to :: The third-order Bézier arc emitter.                    */
   /*                                                                       */
   /*    shift    :: The shift that is applied to coordinates before they   */
   /*                are sent to the emitter.                               */
@@ -695,7 +695,7 @@
   /*                                                                       */
   /*    FT_GLYPH_FORMAT_OUTLINE ::                                         */
   /*      The glyph image is a vectorial outline made of line segments     */
-  /*      and Bezier arcs; it can be described as an @FT_Outline; you      */
+  /*      and Bézier arcs; it can be described as an @FT_Outline; you      */
   /*      generally want to access the `outline' field of the              */
   /*      @FT_GlyphSlotRec structure to read it.                           */
   /*                                                                       */
@@ -1231,3 +1231,8 @@
 
 
 /* END */
+
+
+/* Local Variables: */
+/* coding: utf-8    */
+/* End:             */
--- a/include/freetype/ftoutln.h
+++ b/include/freetype/ftoutln.h
@@ -85,7 +85,7 @@
   /*                                                                       */
   /* <Description>                                                         */
   /*    Walks over an outline's structure to decompose it into individual  */
-  /*    segments and Bezier arcs.  This function is also able to emit      */
+  /*    segments and Bézier arcs.  This function is also able to emit      */
   /*    `move to' and `close to' operations to indicate the start and end  */
   /*    of new contours in the outline.                                    */
   /*                                                                       */
@@ -213,10 +213,10 @@
   /*                                                                       */
   /* <Description>                                                         */
   /*    Returns an outline's `control box'.  The control box encloses all  */
-  /*    the outline's points, including Bezier control points.  Though it  */
+  /*    the outline's points, including Bézier control points.  Though it  */
   /*    coincides with the exact bounding box for most glyphs, it can be   */
   /*    slightly larger in some situations (like when rotating an outline  */
-  /*    which contains Bezier outside arcs).                               */
+  /*    which contains Bézier outside arcs).                               */
   /*                                                                       */
   /*    Computing the control box is very fast, while getting the bounding */
   /*    box can take much more time as it needs to walk over all segments  */
@@ -519,3 +519,8 @@
 
 
 /* END */
+
+
+/* Local Variables: */
+/* coding: utf-8    */
+/* End:             */
--- a/include/freetype/ftstroke.h
+++ b/include/freetype/ftstroke.h
@@ -407,7 +407,7 @@
    *   FT_Stroker_ConicTo
    *
    * @description:
-   *   `Draw' a single quadratic bezier in the stroker's current sub-path,
+   *   `Draw' a single quadratic Bézier in the stroker's current sub-path,
    *   from the last position.
    *
    * @input:
@@ -415,7 +415,7 @@
    *     The target stroker handle.
    *
    *   control ::
-   *     A pointer to a Bezier control point.
+   *     A pointer to a Bézier control point.
    *
    *   to ::
    *     A pointer to the destination point.
@@ -439,7 +439,7 @@
    *   FT_Stroker_CubicTo
    *
    * @description:
-   *   `Draw' a single cubic Bezier in the stroker's current sub-path,
+   *   `Draw' a single cubic Bézier in the stroker's current sub-path,
    *   from the last position.
    *
    * @input:
@@ -447,10 +447,10 @@
    *     The target stroker handle.
    *
    *   control1 ::
-   *     A pointer to the first Bezier control point.
+   *     A pointer to the first Bézier control point.
    *
    *   control2 ::
-   *     A pointer to second Bezier control point.
+   *     A pointer to second Bézier control point.
    *
    *   to ::
    *     A pointer to the destination point.
@@ -709,3 +709,8 @@
 
 
 /* END */
+
+
+/* Local Variables: */
+/* coding: utf-8    */
+/* End:             */
--- a/include/freetype/ftwinfnt.h
+++ b/include/freetype/ftwinfnt.h
@@ -77,7 +77,8 @@
    *     Mac Roman encoding.
    *
    *   FT_WinFNT_ID_OEM ::
-   *     From Michael P�ttgen <[email protected]>:
+   *     From Michael Pöttgen <[email protected]>:
+   *
    *       The `Windows Font Mapping' article says that FT_WinFNT_ID_OEM
    *       is used for the charset of vector fonts, like `modern.fon',
    *       `roman.fon', and `script.fon' on Windows.
@@ -255,3 +256,8 @@
 
 
 /* END */
+
+
+/* Local Variables: */
+/* coding: utf-8    */
+/* End:             */
--- a/src/tools/docmaker/tohtml.py
+++ b/src/tools/docmaker/tohtml.py
@@ -11,7 +11,7 @@
 "http://www.w3.org/TR/html4/loose.dtd">
 <html>
 <head>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 <title>"""
 
 html_header_2= """ API Reference</title>