Return-Path: X-Original-To: apmail-pdfbox-users-archive@www.apache.org Delivered-To: apmail-pdfbox-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4244817410 for ; Tue, 7 Apr 2015 16:20:58 +0000 (UTC) Received: (qmail 50432 invoked by uid 500); 7 Apr 2015 16:14:18 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 50411 invoked by uid 500); 7 Apr 2015 16:14:18 -0000 Mailing-List: contact users-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@pdfbox.apache.org Delivered-To: mailing list users@pdfbox.apache.org Received: (qmail 50399 invoked by uid 99); 7 Apr 2015 16:14:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Apr 2015 16:14:17 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [209.85.220.43] (HELO mail-pa0-f43.google.com) (209.85.220.43) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Apr 2015 16:13:52 +0000 Received: by patj18 with SMTP id j18so83374856pat.2 for ; Tue, 07 Apr 2015 09:12:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jahewson.com; s=google; h=subject:references:from:content-type:in-reply-to:message-id:date:to :content-transfer-encoding:mime-version; bh=mt8x5tLe8mVZ8WJ9Dbix4odfPZmCC9oZrlU3rKU52fk=; b=eBetrA+vzi8TdYu3e918DJHiuHm3VfZLURJDHM8lNgG+hu9Zk12oetrRRc5hf/95CN 9kKE4Fi6CNQ40NDXvp4VV1xE+qdFZk6c8YBUzFcspQM/CJfnaLmL4x8sd5GAP+2E8vJC lhdFTzjiazCpGWprGynYl/sFOJ11thKZhqNJk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:references:from:content-type:in-reply-to :message-id:date:to:content-transfer-encoding:mime-version; bh=mt8x5tLe8mVZ8WJ9Dbix4odfPZmCC9oZrlU3rKU52fk=; b=Owck1OozNdXQvcPxqdCMrwZzRBD/mklqYjM+gFikFsO7kYeBpV0AtBD9aDQIvHALP3 SYhbJJ00KRldi+Fsb2bfCk2H+bFzJIQDLeksbO7TcKEFOjiAr4uWq9Zq7EVUHWgtSckj xViRScjVbxMFMyTHNt79FVWx+EUDYZGTyP6Adh+1PknCtAQ+V6GqGs60jsjMzoChXT9C 3gOc8kbs5sd94hjKjdz53ITObt1T/V84gSjuqXcQTLT1IU1iUbSriUZtOFVvTw+9IGls CEqbgmp5XFSc/F+5sjZObqFvkwmzW4DyOgQGbY9HpNmry+ZnXpYtWFSijuuUuaQDP/vP lldA== X-Gm-Message-State: ALoCoQmez3Wr3DOLS0ukU8Y7BK1Y8XEJPiqFDNi5rZQjqaUci07SOwCQu00f22EV7BQf8xRjthex X-Received: by 10.66.144.201 with SMTP id so9mr38066547pab.78.1428423120233; Tue, 07 Apr 2015 09:12:00 -0700 (PDT) Received: from [10.0.1.7] (cpe-104-175-16-9.socal.res.rr.com. [104.175.16.9]) by mx.google.com with ESMTPSA id q3sm8491847pds.49.2015.04.07.09.11.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 Apr 2015 09:11:59 -0700 (PDT) Subject: Re: pdfbox warnings References: <5514329F.2090803@t-online.de> <551B0FB2.4080604@t-online.de> <5522DD25.30402@t-online.de> <528E91AB-5628-44A3-9D53-0AA72F003F48@jahewson.com> From: John Hewson Content-Type: text/plain; charset=us-ascii X-Mailer: iPhone Mail (12D508) In-Reply-To: Message-Id: Date: Tue, 7 Apr 2015 09:11:57 -0700 To: "users@pdfbox.apache.org" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) X-Virus-Checked: Checked by ClamAV on apache.org > On 7 Apr 2015, at 05:00, Eric Douglas wrote: >=20 >> On Tue, Apr 7, 2015 at 2:56 AM, John Hewson wrote: >>=20 >>=20 >> On 6 Apr 2015, at 14:38, Tres Finocchiaro >> wrote: >>=20 >>>>=20 >>>>> ExternalFonts.addSubstitute("ZapfDingbats", "WingdingsRegular"); >>>>> That will map Zapf Dingbats to Webdings. If it works then we can >> include >>>> that substitution by default in PDFBox. >>>=20 >>>=20 >>>=20 >>> Just a lurker chiming in here... If John Hewson's statement is true, >>> doesn't the substitution solve this? >>=20 >> Yes, we just need to make sure to choose a substitute (Windings, >> Webdings?) which provides the necessary glyphs (I believe that they're al= l >> in Unicode, so our existing cmap mapping mechanism for TTF glyphs should >> handle it once we map the font name). >>=20 >=20 > Is that a real solution? Is Zapfdingbats available on any platform? Is > Wingdings available on every platform or free to redistribute? Yes, OS X ships with "ZapfDingbatsITC" and URW++ "Dingbats" ships with Ghost= script, so is at least available on Linux. PDFBox already ships with these m= appings built-in. Webdings is also available on Linux via the legacy free "Microsoft core font= s for the web" package, though we don't map to it (yet). > I don't know what characters are in Zapfdingbats versus Wingdings, but it > would need a mapping. The characters from ZapfDigbats are in Unicode, so should map automatically,= bugs notwithstanding. > I tested replacing Zapfdingbats with Wingdings in my > own app yesterday and had to change the character code to print a check > mark. We'll definitely have to check that the mapping is appropriate/valid and cus= tomise it if necessary. >>=20 >>> I have a custom FontMapping.Properties >>> < >> https://github.com/qzindustries/qz-print/blob/1.8-pdfbox/pdfbox_1.8.4_qz/= src/org/apache/pdfbox/resources/FontMapping.properties#L21 >>>=20 >>> (github.com) that I use for this stuff because the font replacement on >>> Linux seems to be lacking for many standard fonts. If an equivalent >>> exists, shouldn't the project try to use it? >>=20 >> Yes, usually our font mapper handles this automatically but as you've >> noticed sometimes it's necessary to hard-code some hints. >>=20 >>> I personally don't like the idea of copying fonts from an Adobe area >> into a >>> systems area, especially as a recommendation for using a Java library. >>> Something feels wrong about that, personally. :) $0.02 >>>=20 >>> -Tres >>=20 >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org >> For additional commands, e-mail: users-help@pdfbox.apache.org >>=20 >>=20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org For additional commands, e-mail: users-help@pdfbox.apache.org