File tree Expand file tree Collapse file tree 6 files changed +18
-5
lines changed Expand file tree Collapse file tree 6 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -589,3 +589,7 @@ implementers).
589
589
Passing ``ismath="TeX!" `` to `.RendererAgg.get_text_width_height_descent ` is
590
590
deprecated. Pass ``ismath="TeX" `` instead, consistently with other low-level
591
591
APIs which support the values True, False, and "TeX" for ``ismath ``.
592
+
593
+ ``matplotlib.ttconv ``
594
+ ~~~~~~~~~~~~~~~~~~~~~
595
+ This module is deprecated.
Original file line number Diff line number Diff line change 41
41
from matplotlib .path import Path
42
42
from matplotlib .dates import UTC
43
43
from matplotlib import _path
44
- from matplotlib import ttconv
44
+ from matplotlib import _ttconv
45
45
from . import _backend_pdf_ps
46
46
47
47
_log = logging .getLogger (__name__ )
@@ -996,7 +996,7 @@ def get_char_width(charcode):
996
996
# Make the charprocs array (using ttconv to generate the
997
997
# actual outlines)
998
998
try :
999
- rawcharprocs = ttconv .get_pdf_charprocs (
999
+ rawcharprocs = _ttconv .get_pdf_charprocs (
1000
1000
os .fsencode (filename ), glyph_ids )
1001
1001
except RuntimeError :
1002
1002
_log .warning ("The PDF backend does not currently support the "
Original file line number Diff line number Diff line change 26
26
from matplotlib .cbook import is_writable_file_like , file_requires_unicode
27
27
from matplotlib .font_manager import is_opentype_cff_font , get_font
28
28
from matplotlib .ft2font import LOAD_NO_HINTING
29
- from matplotlib .ttconv import convert_ttf_to_ps
29
+ from matplotlib ._ttconv import convert_ttf_to_ps
30
30
from matplotlib .mathtext import MathTextParser
31
31
from matplotlib ._mathtext_data import uni2type1
32
32
from matplotlib .path import Path
Original file line number Diff line number Diff line change
1
+ """
2
+ Converting and subsetting TrueType fonts to PS types 3 and 42, and PDF type 3.
3
+ """
4
+
5
+ from . import cbook
6
+ from ._ttconv import convert_ttf_to_ps , get_pdf_charprocs # noqa
7
+
8
+
9
+ cbook .warn_deprecated ('3.3' , name = __name__ , obj_type = 'module' )
Original file line number Diff line number Diff line change @@ -413,7 +413,7 @@ def get_extensions(self):
413
413
yield ext
414
414
# ttconv
415
415
ext = Extension (
416
- "matplotlib.ttconv " , [
416
+ "matplotlib._ttconv " , [
417
417
"src/_ttconv.cpp" ,
418
418
"extern/ttconv/pprdrv_tt.cpp" ,
419
419
"extern/ttconv/pprdrv_tt2.cpp" ,
Original file line number Diff line number Diff line change @@ -279,7 +279,7 @@ static PyModuleDef ttconv_module = {
279
279
#pragma GCC visibility push(default)
280
280
281
281
PyMODINIT_FUNC
282
- PyInit_ttconv (void )
282
+ PyInit__ttconv (void )
283
283
{
284
284
PyObject* m;
285
285
You can’t perform that action at this time.
0 commit comments