[vtkusers] Problem rendering vtkChartXY
pof
jd379252 at gmail.com
Wed Mar 16 14:55:44 EDT 2011
Hi all,
just to mention, in case it may help... that applying :
- the fix proposed by Roger Bramon at the end of 2010 (see bug id
0009618) to 5.6.1 release,
- and also a UTF 8 text rendering fix,
then I do not see any obvious problem with the rendering of number
"10000" at 128 pt.
From the info I had at this time, these modifications should be
incorporated in vtk5.8
JD
> Date: Wed, 16 Mar 2011 11:25:18 -0400
> From: "Eric E. Monson"<emonson at cs.duke.edu>
> Subject: Re: [vtkusers] Problem rendering vtkChartXY
> To: "Frese Daniel Dr."<frese at heidenhain.de>
> Cc: "vtkusers at vtk.org"<vtkusers at vtk.org>, "subs at collab.se"
> <subs at collab.se>
> Message-ID:<86FE7447-ED5C-4AC1-B1EE-F6B4415AE098 at cs.duke.edu>
> Content-Type: text/plain; charset=windows-1252
>
> 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