[vtkusers] Problem rendering vtkChartXY

Eric E. Monson emonson at cs.duke.edu
Wed Mar 16 11:25:18 EDT 2011


Hey Daniel,

Yes, I'm sure you're right that the artifacts you're seeing are coming from the same source since vtkTextActor uses vtkFreeTypeUtilities. The example I included was generated using a slight variation of the vtkFreeTypeStringToImage test Charts/Testing/Cxx/TestFreeTypeRender.cxx, so it is sure to be independent of the Charts themselves and also uses vtkFreeTypeUtilities to render strings to ImageData.

Thanks – It's good to see some confirmation that it's reproducible.
-Eric


On Mar 16, 2011, at 10:40 AM, Frese Daniel Dr. wrote:

> Actually, now that you mention this, I see the same "wrapping-around" effect of the font at the labels of the vtkAxesActor; I just did not really understand before what I was seeing... I attach a jpg showing this behavior for the "Y" letter (although I am not sure what the mailing list does to attached images). So I think Eric is right that this is a problem in the font implementation rather than a vtkChartXY - specific problem.
> 
> Daniel
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] Im Auftrag von Eric E. Monson
> Gesendet: Mittwoch, 16. März 2011 14:35
> An: subs at collab.se
> Cc: vtkusers at vtk.org
> Betreff: Re: [vtkusers] Problem rendering vtkChartXY
> 
> Hey Riku,
> 
> Thanks for passing along the SetScaleTiles tip. I'd never noticed that before. On Mac it still gives a bit of a strange result for me, but better than before.
> 
> I think the font problem you're seeing is a bug in the VTK FreeType implementation that either hasn't been noticed or just nobody has had time to fix. For me it only happens at really large font sizes, so that may be why you're noticing it and nobody else has.
> 
> What I see is part of the string that's being rendered wrapping around from the right side to the beginning of the left side. I'll attach an image (of the number 10000 rendered at 128 pt), but I don't think there is a way to get around it until the bug is fixed. Feel free to file a bug report so it stays on peoples' radar.
> 
> Talk to you later,
> -Eric
> 
> <wrapped_font.jpg>-------------------------------------------------------------------------------------------------------
> Registergericht: Traunstein / Registry Court: HRB 275 – Sitz / Head Office: Traunreut
> Aufsichtsratsvorsitzender / Chairman of Supervisory Board: Rainer Burkhard
> Geschäftsführung / Management Board: Thomas Sesselmann (Vorsitzender / Chairman),
> Michael Grimm, Matthias Fauser, Sebastian Tondorf
> 
> E-Mail Haftungsausschluss / E-Mail Disclaimer: http://www.heidenhain.de/disclaimer
> 




More information about the vtkusers mailing list