File tree 2 files changed +29
-12
lines changed
2 files changed +29
-12
lines changed Original file line number Diff line number Diff line change @@ -395,10 +395,18 @@ def __repr__(self):
395
395
396
396
def ttfFontProperty (font ):
397
397
"""
398
- A function for populating the :class:`FontKey` by extracting
399
- information from the TrueType font file.
398
+ Extract information from a TrueType font file.
399
+
400
+ Parameters
401
+ ----------
402
+ font : `.FT2Font`
403
+ The TrueType font file from which information will be extracted.
404
+
405
+ Returns
406
+ -------
407
+ `FontEntry`
408
+ The extracted font properties.
400
409
401
- *font* is a :class:`FT2Font` instance.
402
410
"""
403
411
name = font .family_name
404
412
@@ -474,10 +482,18 @@ def ttfFontProperty(font):
474
482
475
483
def afmFontProperty (fontpath , font ):
476
484
"""
477
- A function for populating a :class:`FontKey` instance by
478
- extracting information from the AFM font file.
485
+ Extract information from an AFM font file.
486
+
487
+ Parameters
488
+ ----------
489
+ font : `.AFM`
490
+ The AFM font file from which information will be extracted.
491
+
492
+ Returns
493
+ -------
494
+ `FontEntry`
495
+ The extracted font properties.
479
496
480
- *font* is a class:`AFM` instance.
481
497
"""
482
498
483
499
name = font .get_familyname ()
Original file line number Diff line number Diff line change @@ -44,14 +44,15 @@ class Type1Font(object):
44
44
"""
45
45
A class representing a Type-1 font, for use by backends.
46
46
47
- .. attribute:: parts
47
+ Attributes
48
+ ----------
49
+ parts : tuple
50
+ A 3-tuple of the cleartext part, the encrypted part, and the finale of
51
+ zeros.
48
52
49
- A 3-tuple of the cleartext part, the encrypted part, and the
50
- finale of zeros .
53
+ prop : Dict[str, Any]
54
+ A dictionary of font properties .
51
55
52
- .. attribute:: prop
53
-
54
- A dictionary of font properties.
55
56
"""
56
57
__slots__ = ('parts' , 'prop' )
57
58
You can’t perform that action at this time.
0 commit comments