@@ -573,12 +573,6 @@ class Vf(Dvi):
573
573
r"""
574
574
A virtual font (\*.vf file) containing subroutines for dvi files.
575
575
576
- Usage::
577
-
578
- vf = Vf(filename)
579
- glyph = vf[code]
580
- glyph.text, glyph.boxes, glyph.width
581
-
582
576
Parameters
583
577
----------
584
578
filename : str or path-like
@@ -589,6 +583,13 @@ class Vf(Dvi):
589
583
http://mirrors.ctan.org/info/knuth/virtual-fonts
590
584
This class reuses some of the machinery of `Dvi`
591
585
but replaces the `_read` loop and dispatch mechanism.
586
+
587
+ Examples
588
+ --------
589
+ ::
590
+ vf = Vf(filename)
591
+ glyph = vf[code]
592
+ glyph.text, glyph.boxes, glyph.width
592
593
"""
593
594
594
595
def __init__ (self , filename ):
@@ -753,20 +754,6 @@ class PsfontsMap:
753
754
"""
754
755
A psfonts.map formatted file, mapping TeX fonts to PS fonts.
755
756
756
- Usage::
757
-
758
- >>> map = PsfontsMap(find_tex_file('pdftex.map'))
759
- >>> entry = map[b'ptmbo8r']
760
- >>> entry.texname
761
- b'ptmbo8r'
762
- >>> entry.psname
763
- b'Times-Bold'
764
- >>> entry.encoding
765
- '/usr/local/texlive/2008/texmf-dist/fonts/enc/dvips/base/8r.enc'
766
- >>> entry.effects
767
- {'slant': 0.16700000000000001}
768
- >>> entry.filename
769
-
770
757
Parameters
771
758
----------
772
759
filename : str or path-like
@@ -792,6 +779,20 @@ class PsfontsMap:
792
779
the Times-Bold example above), while the pdf-related files perhaps
793
780
only avoid the "Base 14" pdf fonts. But the user may have
794
781
configured these files differently.
782
+
783
+ Examples
784
+ --------
785
+ >>> map = PsfontsMap(find_tex_file('pdftex.map'))
786
+ >>> entry = map[b'ptmbo8r']
787
+ >>> entry.texname
788
+ b'ptmbo8r'
789
+ >>> entry.psname
790
+ b'Times-Bold'
791
+ >>> entry.encoding
792
+ '/usr/local/texlive/2008/texmf-dist/fonts/enc/dvips/base/8r.enc'
793
+ >>> entry.effects
794
+ {'slant': 0.16700000000000001}
795
+ >>> entry.filename
795
796
"""
796
797
__slots__ = ('_font' , '_filename' )
797
798
0 commit comments