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 049E1181E3 for ; Thu, 22 Oct 2015 00:31:00 +0000 (UTC) Received: (qmail 71105 invoked by uid 500); 22 Oct 2015 00:30:59 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 71080 invoked by uid 500); 22 Oct 2015 00:30:59 -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 71064 invoked by uid 99); 22 Oct 2015 00:30:59 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Oct 2015 00:30:59 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id D55CE180E80 for ; Thu, 22 Oct 2015 00:30:58 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.726 X-Spam-Level: *** X-Spam-Status: No, score=3.726 tagged_above=-999 required=6.31 tests=[DC_IMAGE_SPAM_HTML=0.141, DC_IMAGE_SPAM_TEXT=0.123, DC_PNG_UNO_LARGO=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_IMAGE_ONLY_24=1.282, HTML_MESSAGE=3, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id tk7Se7Oz_FRw for ; Thu, 22 Oct 2015 00:30:57 +0000 (UTC) Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id E99A12303B for ; Thu, 22 Oct 2015 00:30:56 +0000 (UTC) Received: by wicll6 with SMTP id ll6so113450639wic.0 for ; Wed, 21 Oct 2015 17:30:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=7sy9u2z9D1cufrMSQenkjdqp4hBoaikWQ1rJXwF4raU=; b=S/Qufgj+4lKMQ6grirmx8Z3xsVKmSDr6ZPuEoP6gyQW3pUHW/CO2WTHs+MJ3N2c2pR WjDwzaMbFo0oGknCmNFVEhu0RHOEYGTbDVCIA7gDjPEBK9WbYuhpd9apZ1k+Ggs+i5BX 4186a7ljJHPesPfWlfKUiqZ/gbBaCltwuYw1/D9Cp1WWedTeJiodh7j8eZE1kFXBLZiq v7iEz1cPZC5aG06kyRryWi3r3B/b/EpO9dRi4J9EzKvnmm+yqK5WlDybMnWH/hkHn4FW 5gPV4iM3MGfVix/xZhwKlL5bcolLaNCh2diC91PtCaB0dwA4NhF0+/Um2eS3UqryFKZq qe5g== X-Received: by 10.180.90.37 with SMTP id bt5mr37204246wib.7.1445473855081; Wed, 21 Oct 2015 17:30:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.165.205 with HTTP; Wed, 21 Oct 2015 17:30:35 -0700 (PDT) In-Reply-To: <5627CA51.5010409@t-online.de> References: <5626464C.1080002@mail.de> <56265293.1090706@mail.de> <5627BFEA.80400@t-online.de> <5627CA51.5010409@t-online.de> From: Roberto Nibali Date: Thu, 22 Oct 2015 02:30:35 +0200 Message-ID: Subject: Re: Speedup Font Cache To: users@pdfbox.apache.org Content-Type: multipart/related; boundary=f46d043d6779aa35080522a69b33 --f46d043d6779aa35080522a69b33 Content-Type: multipart/alternative; boundary=f46d043d6779aa35050522a69b32 --f46d043d6779aa35050522a69b32 Content-Type: text/plain; charset=UTF-8 Hi Tilman On Wed, Oct 21, 2015 at 7:24 PM, Tilman Hausherr wrote: > Am 21.10.2015 um 18:43 schrieb Maruan Sahyoun: > >> Hi, >> >> >>> Could it be that 1) you installed new stuff on your computer, 2) that >>> MacOS has many of its fonts in .ttc files? In Windows there are only 10. >>> >> on my OS X I have 92 ttc files (out of 384) :-) >> > > Oh. I forgot to mention why I asked that. My last change ignores ttc files > in the cache, even deletes them, because the cache is one file => one ttf > font, this resulted in ttf fonts being ignored the second time. So these > ttc files would be parsed each time. I reckon you're referring to this part: [image: Inline image 1] I have some files ending in .TTC, which would only be omitted with the following code: if (path.toLowerCase().endsWith(".ttc")) There is another one: @surimacpro:~/$ ack "path.endsWith" examples/src/main/java/org/apache/pdfbox/examples/lucene/IndexPDFFiles.java 201: if (path.endsWith(".PDF")) pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/FileSystemFontProvider.java 269: if (path.endsWith(".ttc")) Maybe you can amend those, though this has nothing to do with the issue at hand. Cheers Roberto --f46d043d6779aa35050522a69b32 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Tilman

On Wed, Oct 21, 2015 at 7:24 PM, Tilman Hausherr <THaushe= rr@t-online.de> wrote:
Am 21.10.2015 um 18:43 sch= rieb Maruan Sahyoun:
Hi,


Could it be that 1) you installed new stuff on your computer, 2) that MacOS= has many of its fonts in .ttc files? In Windows there are only 10.
on my OS X I have 92 ttc files (out of 384) :-)

Oh. I forgot to mention why I asked that. My last change ignores ttc files = in the cache, even deletes them, because the cache is one file =3D> one = ttf font, this resulted in ttf fonts being ignored the second time. So thes= e ttc files would be parsed each time.
=

I reckon you're referring to this part:



I have some files ending in .TTC, which would o= nly be omitted with the following code:

=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if (path.to= LowerCase().endsWith(".ttc"))

There is another = one:

@surimacpro:~/$= ack "path.endsWith"
examples/src/main/java/org/apache/pdfbox/= examples/lucene/IndexPDFFiles.java
201:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 if (path.endsWith(".PDF"))

pdfbox/src/main/java/org= /apache/pdfbox/pdmodel/font/FileSystemFontProvider.java
269:=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 if (path.endsWith(".ttc"))


Maybe you can amend those, though this has nothing to do with the issue a= t hand.

Cheers
Roberto
=C2=A0=

--f46d043d6779aa35050522a69b32-- --f46d043d6779aa35080522a69b33--