[#2423] - Font "Helvetica Neue" 9pt problem

Jaspersoft Community 'Read-Only' as of July 8, 2022

Transition to New TIBCO Community Just Weeks Away

You can still search, review wiki content, and review discussions in read-only mode. Please email community@tibco.com with questions or issues requiring TIBCO review or response.

Category:
Bug report
Priority:
High
Status:
Acknowledged
Project: Severity:
Major
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:

We have a strange problem with the font "Helvetica Neue" in 9pt size: In the preview panel and with direct printing, text with this font and size combination disappears. When the report is exported to PDF, the text is visible. Text with any other size (e.g. 10pt or 8pt) with this font renders just find.

The problem is observed on Mac OS 10.4, where this font is a standard font.

bfl's picture
bfl
1
Joined: May 18 2007 - 12:37am
Last seen: 15 years 1 month ago

1 Comment:

#1

I can offer a bit more information, as I have just debugged the application.

The source of the problem seems to be a rounding error. Line 312 of TextRenderer (of Version 1.3.3) reads as follows:

if (drawPosY + lineHeight <= textHeight)

drawPosY = 0
lineHeight= 10.710001
textHeight = 10.71

The expression therefore evaluates to fales and the text is never printed.

textHeight is calculated in TextMeasurer line 281, which seems to be correct. The question is, how the lineHeight of 10.710001 is getting calculated, and this is what I am going investigating now.

Feedback