GalaevAlexey / core-plot

Automatically exported from code.google.com/p/core-plot
0 stars 0 forks source link

Use CGRectIntegral() for crisp display of labels #586

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
After frames of labels (including legends) are determined, wrap them in 
CGRectIntegral() for crisp display.

Original issue reported on code.google.com by yvs...@gmail.com on 1 Oct 2013 at 8:31

GoogleCodeExporter commented 8 years ago
Can you provide any specific places where text is blurry? CPTTextLayer will 
always have an integral size that is big enough to contain its text. The legend 
draws its text into rectangles that are aligned to device pixels using 
CPTAlignRectToUserSpace(). This function ensures that the size is an integral 
number of device pixels, too.

Original comment by eskr...@mac.com on 2 Oct 2013 at 12:46

GoogleCodeExporter commented 8 years ago
Maybe they don't look very sharp due to the small font. This issue can be 
closed if the frames are already integral.

Original comment by yvs...@gmail.com on 2 Oct 2013 at 12:54

GoogleCodeExporter commented 8 years ago

Original comment by eskr...@mac.com on 3 Oct 2013 at 12:08