From owner-freebsd-java@freebsd.org Wed Apr 27 14:25:12 2016 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 196AAB1DB2D for ; Wed, 27 Apr 2016 14:25:12 +0000 (UTC) (envelope-from bugReporter@ib-haakh.de) Received: from mo6-p00-ob.smtp.rzone.de (mo6-p00-ob.smtp.rzone.de [IPv6:2a01:238:20a:202:5300::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.smtp.rzone.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B08BF1FB8 for ; Wed, 27 Apr 2016 14:25:11 +0000 (UTC) (envelope-from bugReporter@ib-haakh.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1461767107; l=505; s=domk; d=ib-haakh.de; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Date:Subject: From:To; bh=pZRrh457+8cw4+0RDRy8GEMixNoQAK8CwL2hCkhHw7Q=; b=Ht8Z7We0pRE0UybPYktorcfkUUgKYlXbrOZvyDWC5JmzW42iaILhnf9VAJbAUKYBhoh UZMxl+TGdKX2VgNNiV2SocNnWeu4T2STZr/qJyVaYx+itOE0mWYVAnxmbCddusgW4lpCz RJVO3KBsXDspuEVRTYmjgh/E9BO8YOxeeRc= X-RZG-AUTH: :LWQcbViwW/e6OTbW0dHzwKkCepEs/ThuRG8zpeuciRNkwehqP5JjNT89yOPY/Ak= X-RZG-CLASS-ID: mo00 Received: from pain.Haakh.de (p579DC8A0.dip0.t-ipconnect.de [87.157.200.160]) by post.strato.de (RZmta 37.24 DYNA|AUTH) with ESMTPA id m03399s3REP6Ibd for ; Wed, 27 Apr 2016 16:25:06 +0200 (CEST) Received: from Crabberio.Haakh.de (crabberio.Haakh.de [192.168.63.16]) by pain.Haakh.de (8.15.2/8.15.2) with ESMTP id u3REP6sn085153 for ; Wed, 27 Apr 2016 16:25:06 +0200 (CEST) (envelope-from bugReporter@ib-haakh.de) To: freebsd-java@freebsd.org From: "Dr. A. Haakh" Subject: fontmetrics missing in Printable.print Message-ID: <5720CBC2.2060400@ib-haakh.de> Date: Wed, 27 Apr 2016 16:25:06 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Apr 2016 14:25:12 -0000 Hi, when I try to print a graphic with text using graph2d, the fontmetrics are all unset. eg. class Foo implements Printable { [...] public int print(java.awt.Graphics graphics, java.awt.print.PageFormat pageFormat, int param) throws java.awt.print.PrinterException { FontMetrics fm = graphics.getFontMetrics(); System.out.println("Ascent="+fm.getAscent()); [...] return java.awt.print.Printable.PAGE_EXISTS; } gives you "Ascent=0" this bug does not exist in Windows. Andreas