Skip to content

Commit 565f42a

Browse files
committed
Simplify doc summaries
1 parent 359f2eb commit 565f42a

18 files changed

+54
-48
lines changed

docstrings/bitmap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
from __future__ import print_function, unicode_literals, absolute_import
3535

3636
Bitmap__init__ = """
37-
A structure used to describe a bitmap or pixmap to the raster.
37+
Describes a bitmap raster.
3838
3939
`Bitmap` supports the Python buffer interface, so it is easy to
4040
convert it to a Numpy array. For example::
@@ -111,7 +111,7 @@
111111
"""
112112

113113
PIXEL_MODE = """
114-
Constants related to the pixel mode of bitmaps.
114+
Constants related to the pixel mode of `Bitmap`.
115115
116116
- `MONO`: A monochrome bitmap, using 1 bit per pixel. Note that pixels
117117
are stored in most-significant order (MSB), which means that the

docstrings/bitmap_size.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@
3434
from __future__ import print_function, unicode_literals, absolute_import
3535

3636
Bitmap_Size__init__ = """
37-
Models the metrics of a bitmap strike in a bitmap font. It is used for
38-
`Face.available_sizes`.
37+
The metrics of a bitmap strike in a bitmap `Face`.
38+
39+
It is used for `Face.available_sizes`.
3940
"""
4041

4142
Bitmap_Size_height = """

docstrings/charmap.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@
3434
from __future__ import print_function, unicode_literals, absolute_import
3535

3636
CharMap__init__ = """
37-
A mapping from code points to glyph identifiers. Some font formats may
38-
provide several `CharMap` instances per font.
37+
A mapping from code points to glyph identifiers.
38+
39+
Some font formats may provide several `CharMap` instances per font.
3940
4041
Each face object owns zero or more charmaps, but only one of them can
4142
be ‘active’ and used by `Face.get_char_index` or `Face.load_char`.

docstrings/face.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
from __future__ import print_function, unicode_literals, absolute_import
3535

3636
Face__init__ = """
37-
A face object models a given typeface, in a given style.
37+
Models a given typeface, in a given style.
3838
3939
Parameters
4040
----------
@@ -711,7 +711,7 @@
711711
"""
712712

713713
FACE_FLAG = """
714-
A set of bit flags that give important information about the face.
714+
Bit flags for important metadata about a `Face`.
715715
716716
- `SCALABLE`: Indicates that the face contains outline glyphs. This
717717
doesn't prevent bitmap strikes, i.e., a face can have both this and
@@ -786,7 +786,7 @@
786786
"""
787787

788788
STYLE_FLAG = """
789-
Bit flags to indicate the style of a given face.
789+
Bit flags indicating the style of a `Face`.
790790
791791
- `ITALIC`: Indicates that a given face style is italic
792792
or oblique.
@@ -795,10 +795,11 @@
795795
"""
796796

797797
LOAD = """
798-
A flag indicating what to load for this glyph. The `LOAD` constants
799-
can be used to control the glyph loading process (e.g., whether the
800-
outline should be scaled, whether to load bitmaps or not, whether to
801-
hint the outline, etc).
798+
Indicates what to load for a glyph.
799+
800+
The `LOAD` constants can be used to control the glyph loading process
801+
(e.g., whether the outline should be scaled, whether to load bitmaps
802+
or not, whether to hint the outline, etc).
802803
803804
- `DEFAULT`: Corresponding to 0, this value is used as the default
804805
glyph load operation. In this case, the following happens:
@@ -932,7 +933,7 @@
932933
"""
933934

934935
SIZE_REQUEST_TYPE = """
935-
Modes for selecting the size of a bitmap font.
936+
Modes for selecting the size of a bitmap `Face`.
936937
937938
- `NOMINAL`: The nominal size. The `Face.units_per_em` is used to
938939
determine both scaling values.
@@ -959,8 +960,8 @@
959960
"""
960961

961962
FSTYPE = """
962-
A list of bit flags indicating the embedding and subsetting
963-
restrictions with a font.
963+
Bit flags indicating the embedding and subsetting
964+
restrictions of a `Face`.
964965
965966
- `INSTALLABLE_EMBEDDING`: Fonts with no fsType bit set may be
966967
embedded and permanently installed on the remote system by an

docstrings/glyph.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
from __future__ import print_function, unicode_literals, absolute_import
3535

3636
Glyph__init__ = """
37-
Contains information pertaining to a single glyph.
37+
Information pertaining to a single glyph.
3838
3939
Notes
4040
-----
@@ -220,7 +220,7 @@
220220
"""
221221

222222
GLYPH_BBOX = """
223-
The mode how the values of `Glyph.get_cbox` are returned.
223+
Indicates how the values of `Glyph.get_cbox` are returned.
224224
225225
- `UNSCALED`: Return unscaled font units.
226226
@@ -234,10 +234,11 @@
234234
"""
235235

236236
GLYPH_FORMAT = """
237-
An enumeration type used to describe the format of a given glyph
238-
image. Note that this version of FreeType only supports two image
239-
formats, even though future font drivers will be able to register
240-
their own format.
237+
Describes the format of a given glyph image.
238+
239+
Note that this version of FreeType only supports two image formats,
240+
even though future font drivers will be able to register their own
241+
format.
241242
242243
- `NONE`: The value 0 is reserved.
243244
@@ -259,7 +260,7 @@
259260
"""
260261

261262
RENDER_MODE = """
262-
A set of enumerations to select a bitmap renderer.
263+
Selects a `Bitmap` renderer.
263264
264265
- `NORMAL`: This is the default render mode; it corresponds to 8-bit
265266
anti-aliased bitmaps.

docstrings/glyph_metrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
from __future__ import print_function, unicode_literals, absolute_import
3535

3636
Glyph_Metrics__init__ = """
37-
A structure used to model the metrics of a single glyph.
37+
Models the metrics of a single `Glyph`.
3838
3939
Notes
4040
-----

docstrings/layout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636

3737
Layout__init__ = """
38-
|freetypy| This class handles very simple layout of left-to-right text.
38+
|freetypy| Manages very simple layout of left-to-right text.
3939
4040
Parameters
4141
----------

docstrings/outline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ def cubic_to(self, a, b, c):
363363
"""
364364

365365
OUTLINE = """
366-
A set of bit flags to characterize an `Outline`.
366+
Bit flags to characterize an `Outline`.
367367
368368
- `NONE`: Value 0 is reserved.
369369
@@ -421,7 +421,7 @@ def cubic_to(self, a, b, c):
421421
"""
422422

423423
ORIENTATION = """
424-
Values to specify how an outline is oriented.
424+
Specifies how an `Outline` is oriented.
425425
426426
- `TRUETYPE`: According to the TrueType specification, clockwise
427427
contours must be filled, and counter-clockwise ones must be

docstrings/sfntnames.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
from __future__ import print_function, unicode_literals, absolute_import
3535

3636
SfntNames__init__ = """
37-
A sequence of SFNT names in the face.
37+
A sequence of SFNT names in a `Face`.
3838
"""
3939

4040
SfntNames_get_name = """

docstrings/size.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
from __future__ import print_function, unicode_literals, absolute_import
3535

3636
Size__init__ = """
37-
A size object models a face object at a given size.
37+
A `Face` object at a given size.
3838
"""
3939

4040
Size_face = """

0 commit comments

Comments
 (0)