I have a weird problem with antialiasing of small text and Polygons. If I use Polygon with holes poly1->poly2
, Antialiasing doesn't work, although I used Antialiasing->True
. See this example:
poly1 = {{0, 0}, {3, 3}, {6, 0}};
poly2 = {{2, 1}, {3, 2}, {4, 1}};
text = Column@Table[Style["FontSize: " <> ToString@i, i, Italic], {i, 2, 22, 2}];
Graphics[{Antialiasing -> True, Polygon[poly1 -> poly2], Red, Text[text, {6, 3}]}]
If I use two single Polygons, without using the hole option it suddenly works:
Graphics[{Antialiasing -> True, Polygon[poly1], White, Polygon[poly2], Red, Text[text, {6, 3}]}]
I know, that the font antialiasing is system dependent, but why does it change if I use different polygon methods and how can I avoid it using the hole option?
I'm using Mathematica 12.1 on Windows 10 64-bit.
Edit -> Appearance -> Graphics -> Highest Quality
and there move the slider to the right max. $\endgroup$