Return-Path: Delivered-To: apmail-jakarta-poi-user-archive@www.apache.org Received: (qmail 87989 invoked from network); 25 Jan 2007 09:36:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jan 2007 09:36:41 -0000 Received: (qmail 67692 invoked by uid 500); 25 Jan 2007 09:36:44 -0000 Delivered-To: apmail-jakarta-poi-user-archive@jakarta.apache.org Received: (qmail 67676 invoked by uid 500); 25 Jan 2007 09:36:44 -0000 Mailing-List: contact poi-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "POI Users List" Reply-To: "POI Users List" Delivered-To: mailing list poi-user@jakarta.apache.org Received: (qmail 67665 invoked by uid 99); 25 Jan 2007 09:36:44 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jan 2007 01:36:44 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=RCVD_IN_SORBS_WEB X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [206.190.52.173] (HELO smtp104.biz.mail.re2.yahoo.com) (206.190.52.173) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 25 Jan 2007 01:36:34 -0800 Received: (qmail 19653 invoked from network); 25 Jan 2007 09:36:12 -0000 Received: from unknown (HELO SIBITAHIR) (tahir@spectrum-tech.com@202.5.145.9 with login) by smtp104.biz.mail.re2.yahoo.com with SMTP; 25 Jan 2007 09:36:12 -0000 X-YMail-OSG: PyKbidwVM1mxAtDa64SHEhaqDiMvE0fbEc0k2OTC88RtZEYdDtyCng28lSOwom3QXQuCDY0UYo73gFCLIeKJ4SxrdfdX8ZwixOBd8TZd6pF22Y7LMHTZERXmeW8GpNVN2KMSSdWCj21DFmNCpox2jtog5T2fE6gtJAMMsWO00zEVgUJMrlZaNtMHPklL From: "Tahir Akhtar" To: "'POI Users List'" Subject: RE: Autosizing question: Date: Thu, 25 Jan 2007 14:35:00 +0500 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-Reply-To: <115258271406.20070125122805@dinom.ru> x-mimeole: Produced By Microsoft MimeOLE V6.00.2900.2180 Thread-Index: AcdAYlkmHnORvV8mS86J25430LqfRwAAGyhg X-Virus-Checked: Checked by ClamAV on apache.org Message-Id: <20070125093637.B036910FB00A@herse.apache.org> I guess the issue is not in the font sizes but the screen dpi calculation. Net result is if you render some text in "Ariel, 12" it will appear smaller on screen as compared to same text & font rendered by windows natively. See this bug report (and related bug 4016591) for details: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4168757 . Wassalam Tahir -----Original Message----- From: Yegor Kozlov [mailto:yegor@dinom.ru] Sent: Thursday, January 25, 2007 2:28 PM To: POI Users List Subject: Re[2]: Autosizing question: Are you sure the Java's font sizes are incompatible with Windows fonts? Could you point me to the source of this information? I plan to add drawing capabilities to HSLF and this stuff is important to me. Regards, Yegor ACO> Its actually more compounded than that. You can basically do this with ACO> Java's AWT Font/FontMetrics classes but the sizes are incompatible with ACO> Windows fonts (let alone Mac et al). Someone has to record the data for ACO> Windows fonts and or an API that reads the font files and calculates them. ACO> -Andy ACO> Avik Sengupta wrote: >>> Since VBA have this function to autosize >>> >>>> columns, I wonder if POI have >>>> >> >> POI is not, and was never meant to be, a replacement for VBA. Its a file >> format reader/writer. To do autosizing, one needs a fontmetrics >> implementation. We're yet find one that is useful and easy enuf to use. >> >> However, as a frequently requested feature, its a ripe oppurtunity for >> contribution :) >> >> Regards >> - >> Avik >> >> On Wednesday 24 January 2007 17:36, Adelbert Groebbens wrote: >> >>>> Autosizing question: >>>> >>>> Hello, is there a way to autosize the specified column >>>> in POI? Since VBA have this function to autosize >>>> columns, I wonder if POI have, if not, I have to >>>> setsize for each column, I think it would waste a lot >>>> of resource right? Thanks >>>> >>> I'm facing the same problem. >>> >>> Did you find a solution? >>> >>> Bret Hart yahoo.com> writes: >>> >>> >>> >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org >>> Mailing List: http://jakarta.apache.org/site/mail2.html#poi >>> The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/ >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org >> Mailing List: http://jakarta.apache.org/site/mail2.html#poi >> The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/ >> >> >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org Mailing List: http://jakarta.apache.org/site/mail2.html#poi The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/ --------------------------------------------------------------------- To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org Mailing List: http://jakarta.apache.org/site/mail2.html#poi The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/