poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Darren Roberts <robertsdjguard-poi...@yahoo.com>
Subject XSSFTextBox and fonts
Date Tue, 16 Jul 2013 19:52:08 GMT
Hi

I'm affected by the same bug listed here

https://issues.apache.org/bugzilla/show_bug.cgi?id=54969

where XSSFTextBox (or rather the XSSFSimpleShape superclass) doesn't apply the font correctly
to the text run. Today I have setup a Java development environment on my linux box, built
POI and been able to implement and test a fix for this issue - but it feels, hmm, shall we
say dirty?! 

BTW I'm using POI in the .Net environment via IKVM so I'm not a Java dev, but I've had the
pleasure of Java many years ago and am slowly working more with linux - so please don't hate
me! :) Also the work around listed in the bug report is off limits with my IKVM build, hence
why I need a native solution.

My fix assumes that the font is going to be latin classification, and in fact the applyAttributes
method already assumes that the Family array is also going to be latin. But this doesn't feel
right - if I'm going to submit a patch for this I'd rather it be as complete/inclusive as
possible. So, can anyone tell me:

a) whether I should be worried about this
b) if so, where can I find information on how to determine which classification I need to
create for the font
c) anything else I need to provide (suggested unit tests?)

Thanks in advance
Darren

PS. Next up will be adding the ability to set the vertical and horizontal alignment of the
text in the textbox which is oddly missing. 
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message