Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Painter small text quality
Painter small text quality [message #39752] Tue, 23 April 2013 12:37 Go to previous message
koldo is currently offline  koldo
Messages: 3354
Registered: August 2008
Senior Veteran
Hello all

I would like to improve text quality using Painter for small texts.

In the image it is the same screen with Draw and Painter. The small texts in the X axis (Jan, Feb, Mar, ...) look better with Draw.

index.php?t=getfile&id=4145&private=0

This is the code for both:

void DrawText(Draw &w, double x, double y, int angle, const String &text, Font font, Color color) {
	w.DrawText(fround(x), fround(y), angle, text, font, color);
}

void DrawText(Painter &w, double x, double y, int angle, const String &text, Font font, Color color) {
	w.Begin();
	w.Translate(x, y).Rotate(-angle*M_PI/1800.);
	w.Text(0, 0, text, font).Fill(color);
	w.End();
}

Do you know how to improve the quality?
  • Attachment: Painter.png
    (Size: 142.96KB, Downloaded 596 times)


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ScatterDraw/ScatterCtrl new features
Next Topic: PATCH: plugin/jpg CMYK support
Goto Forum:
  


Current Time: Thu Mar 28 11:47:47 CET 2024

Total time taken to generate the page: 0.01091 seconds