File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed
Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 296296## ("native" is a synonym.)
297297## - force_autohint: Use FreeType's auto-hinter. ("auto" is a synonym.)
298298## - no_hinting: Disable hinting. ("none" is a synonym.)
299- #text.hinting: force_autohint
299+ #text.hinting: default
300300
301- #text.hinting_factor: 8 # Specifies the amount of softness for hinting in the
301+ #text.hinting_factor: 1 # Specifies the amount of softness for hinting in the
302302 # horizontal direction. A value of 1 will hint to full
303303 # pixels. A value of 2 will hint to half pixels etc.
304304#text.kerning_factor: 0 # Specifies the scaling factor for kerning values. This
Original file line number Diff line number Diff line change 44ytick.alignment: center_baseline
55
66hatch.color: edge
7+
8+ text.hinting: default
9+ text.hinting_factor: 1
Original file line number Diff line number Diff line change 1919
2020def set_font_settings_for_testing ():
2121 mpl .rcParams ['font.family' ] = 'DejaVu Sans'
22- mpl .rcParams ['text.hinting' ] = 'none'
23- mpl .rcParams ['text.hinting_factor' ] = 8
22+ if getattr (mpl , '_called_from_pytest' , False ):
23+ mpl .rcParams ['text.hinting' ] = 'default'
24+ mpl .rcParams ['text.hinting_factor' ] = 1
25+ else :
26+ mpl .rcParams ['text.hinting' ] = 'none'
27+ mpl .rcParams ['text.hinting_factor' ] = 8
2428
2529
2630def set_reproducibility_for_testing ():
You can’t perform that action at this time.
0 commit comments