MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / get_hinting_flag

Function get_hinting_flag

lib/matplotlib/backends/backend_agg.py:43–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41
42
43def get_hinting_flag():
44 mapping = {
45 'default': LoadFlags.DEFAULT,
46 'no_autohint': LoadFlags.NO_AUTOHINT,
47 'force_autohint': LoadFlags.FORCE_AUTOHINT,
48 'no_hinting': LoadFlags.NO_HINTING,
49 True: LoadFlags.FORCE_AUTOHINT,
50 False: LoadFlags.NO_HINTING,
51 'either': LoadFlags.DEFAULT,
52 'native': LoadFlags.NO_AUTOHINT,
53 'auto': LoadFlags.FORCE_AUTOHINT,
54 'none': LoadFlags.NO_HINTING,
55 }
56 return mapping[mpl.rcParams['text.hinting']]
57
58
59class RendererAgg(RendererBase):

Callers 3

draw_textMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…