Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.os.linux > #55915 > unrolled thread

Trying to use the "standard 14 fonts" in PDF files generated from LibreOffice

Started by"Carlos E. R." <robin_listas@es.invalid>
First post2019-04-29 14:41 +0200
Last post2019-04-30 18:41 +0200
Articles 13 — 4 participants

Back to article view | Back to alt.os.linux


Contents

  Trying to use the "standard 14 fonts" in PDF files generated from LibreOffice "Carlos E. R." <robin_listas@es.invalid> - 2019-04-29 14:41 +0200
    Re: Trying to use the "standard 14 fonts" in PDF files generated from LibreOffice "F. Russell" <frussell@random.info> - 2019-04-29 13:26 +0000
      Re: Trying to use the "standard 14 fonts" in PDF files generated from LibreOffice "Carlos E. R." <robin_listas@es.invalid> - 2019-04-29 15:37 +0200
        Re: Trying to use the "standard 14 fonts" in PDF files generated from LibreOffice "F. Russell" <frussell@random.info> - 2019-04-29 14:55 +0000
          Re: Trying to use the "standard 14 fonts" in PDF files generated from LibreOffice "Carlos E. R." <robin_listas@es.invalid> - 2019-04-29 18:10 +0200
    Re: Trying to use the "standard 14 fonts" in PDF files generated from LibreOffice Paul <nospam@needed.invalid> - 2019-04-29 15:46 -0400
      Re: Trying to use the "standard 14 fonts" in PDF files generated from LibreOffice "Carlos E. R." <robin_listas@es.invalid> - 2019-04-30 13:23 +0200
        Re: Trying to use the "standard 14 fonts" in PDF files generated from LibreOffice Paul <nospam@needed.invalid> - 2019-04-30 09:24 -0400
          Re: Trying to use the "standard 14 fonts" in PDF files generated from LibreOffice "F. Russell" <fr@random.info> - 2019-04-30 14:42 +0000
            Re: Trying to use the "standard 14 fonts" in PDF files generated from LibreOffice "Carlos E. R." <robin_listas@es.invalid> - 2019-04-30 18:44 +0200
              Re: Trying to use the "standard 14 fonts" in PDF files generated from LibreOffice "F. Russell" <fr@random.info> - 2019-04-30 16:53 +0000
                Re: Trying to use the "standard 14 fonts" in PDF files generated from LibreOffice "Carlos E. R." <robin_listas@es.invalid> - 2019-04-30 23:08 +0200
          Re: Trying to use the "standard 14 fonts" in PDF files generated from LibreOffice "Carlos E. R." <robin_listas@es.invalid> - 2019-04-30 18:41 +0200

#55915 — Trying to use the "standard 14 fonts" in PDF files generated from LibreOffice

From"Carlos E. R." <robin_listas@es.invalid>
Date2019-04-29 14:41 +0200
SubjectTrying to use the "standard 14 fonts" in PDF files generated from LibreOffice
Message-ID<gio9ogF6hecU1@mid.individual.net>
Hi,


First, an explanation:


<https://en.wikipedia.org/wiki/PDF#Standard_Type_1_Fonts_(Standard_14_Fonts)>

«Fourteen typefaces, known as the standard 14 fonts, have a special
significance in PDF documents:

    Times (v3) (in regular, italic, bold, and bold italic)
    Courier (in regular, oblique, bold and bold oblique)
    Helvetica (v3) (in regular, oblique, bold and bold oblique)
    Symbol
    Zapf Dingbats

These fonts are sometimes called the base fourteen fonts.[19] These
fonts, or suitable substitute fonts with the same metrics, should be
available in most PDF readers, but they are not guaranteed to be
available in the reader, and may only display correctly if the system
has them installed.[20] Fonts may be substituted if they are not
embedded in a PDF.»


In the past, if I created a LibreOffice document using only those fonts,
the resulting file was small because it did not need to embed them,
because most readers have them.

But LibreOffice since 5.3 dropped support for Type 1 fonts.

<http://www.linux-magazine.com/Online/Blogs/Off-the-Beat-Bruce-Byfield-s-Blog/LibreOffice-drops-Type-1-font-support>

OpenOffice apparently still supports them.

I find instructions in Google about how to convert purchased fonts, but
that is not the case.


The problem I have is what fonts I can use, say "times", so that when
the PDF is generated it is not embedded in the PDF but uses its internal
set.


-- 
Cheers,
       Carlos E.R.

[toc] | [next] | [standalone]


#55916

From"F. Russell" <frussell@random.info>
Date2019-04-29 13:26 +0000
Message-ID<qa6u1n0e7l@news2.newsguy.com>
In reply to#55915
On Mon, 29 Apr 2019 14:41:52 +0200, Carlos E. R. vomited this verbiage
that I considered to be worthy of my attention for one of a variety of
possible reasons:

> 
> In the past, if I created a LibreOffice document using only those fonts,
> the resulting file was small because it did not need to embed them,
> because most readers have them.
> 

It's funny that someone who defends the use of hugely bloated systemd
is concerned about the size of embedded fonts.

But you can always tweak the LO printer via psprint.conf to use
ghostscript commands like "-dEmbedAllFonts=false" to generate the
PDF.  A little bit of research on GS will get you a better procedure.

[toc] | [prev] | [next] | [standalone]


#55917

From"Carlos E. R." <robin_listas@es.invalid>
Date2019-04-29 15:37 +0200
Message-ID<giod19F77vfU1@mid.individual.net>
In reply to#55916
On 29/04/2019 15.26, F. Russell wrote:
> On Mon, 29 Apr 2019 14:41:52 +0200, Carlos E. R. vomited this verbiage
> that I considered to be worthy of my attention for one of a variety of
> possible reasons:
> 
>>
>> In the past, if I created a LibreOffice document using only those fonts,
>> the resulting file was small because it did not need to embed them,
>> because most readers have them.
>>
> 
> It's funny that someone who defends the use of hugely bloated systemd
> is concerned about the size of embedded fonts.

It is not related at all.
(Anyway, openSUSE based on init.d had the same level of bloat)


> But you can always tweak the LO printer via psprint.conf to use
> ghostscript commands like "-dEmbedAllFonts=false" to generate the
> PDF.  A little bit of research on GS will get you a better procedure.
> 

Even if LO uses ghostscript, which I doubt, I only want to embed those
14 fonts. And as LO doesn't recognize "Times" as a font, it is replaced
by something else before displaying the text.

It is apparently using TimesNewRomanPS. I need replacements while LO
does the screen rendering.

-- 
Cheers,
       Carlos E.R.

[toc] | [prev] | [next] | [standalone]


#55918

From"F. Russell" <frussell@random.info>
Date2019-04-29 14:55 +0000
Message-ID<qa739n0gf4@news2.newsguy.com>
In reply to#55917
On Mon, 29 Apr 2019 15:37:45 +0200, Carlos E. R. vomited this verbiage
that I considered to be worthy of my attention for one of a variety of
possible reasons:

> 
> Even if LO uses ghostscript, which I doubt
>

A "printer" can be set up in psprint.conf.

LO passes the output print file, in Postscript format, to the
defined "printer" in a variable TMP.

The "printer" can be any sort of ghostscript or other processing
command and can have font substitutions.

Since I am not currently at my GNU/Linux machine I can't
make any more specific comments but a search for "set up
printer with psprint.conf" should give more info,

[toc] | [prev] | [next] | [standalone]


#55920

From"Carlos E. R." <robin_listas@es.invalid>
Date2019-04-29 18:10 +0200
Message-ID<giolvqF93kvU2@mid.individual.net>
In reply to#55918
On 29/04/2019 16.55, F. Russell wrote:
> On Mon, 29 Apr 2019 15:37:45 +0200, Carlos E. R. vomited this verbiage
> that I considered to be worthy of my attention for one of a variety of
> possible reasons:
> 
>>
>> Even if LO uses ghostscript, which I doubt
>>
> 
> A "printer" can be set up in psprint.conf.
> 
> LO passes the output print file, in Postscript format, to the
> defined "printer" in a variable TMP.
> 
> The "printer" can be any sort of ghostscript or other processing
> command and can have font substitutions.
> 
> Since I am not currently at my GNU/Linux machine I can't
> make any more specific comments but a search for "set up
> printer with psprint.conf" should give more info,
PDF conversion is not done that way if the table of content is to be
preserved. It uses another toolset. That's only of printing, and I'm not
printing.

-- 
Cheers,
       Carlos E.R.

[toc] | [prev] | [next] | [standalone]


#55924

FromPaul <nospam@needed.invalid>
Date2019-04-29 15:46 -0400
Message-ID<qa7kbf$n7k$1@dont-email.me>
In reply to#55915
Carlos E. R. wrote:
> Hi,
> 
> First, an explanation:
> 
> <https://en.wikipedia.org/wiki/PDF#Standard_Type_1_Fonts_(Standard_14_Fonts)>
> 
> «Fourteen typefaces, known as the standard 14 fonts, have a special
> significance in PDF documents:
> 
>     Times (v3) (in regular, italic, bold, and bold italic)
>     Courier (in regular, oblique, bold and bold oblique)
>     Helvetica (v3) (in regular, oblique, bold and bold oblique)
>     Symbol
>     Zapf Dingbats
> 
> These fonts are sometimes called the base fourteen fonts.[19] These
> fonts, or suitable substitute fonts with the same metrics, should be
> available in most PDF readers, but they are not guaranteed to be
> available in the reader, and may only display correctly if the system
> has them installed.[20] Fonts may be substituted if they are not
> embedded in a PDF.»
> 
> In the past, if I created a LibreOffice document using only those fonts,
> the resulting file was small because it did not need to embed them,
> because most readers have them.
> 
> But LibreOffice since 5.3 dropped support for Type 1 fonts.
> 
> <http://www.linux-magazine.com/Online/Blogs/Off-the-Beat-Bruce-Byfield-s-Blog/LibreOffice-drops-Type-1-font-support>
> 
> OpenOffice apparently still supports them.
> 
> I find instructions in Google about how to convert purchased fonts, but
> that is not the case.
> 
> 
> The problem I have is what fonts I can use, say "times", so that when
> the PDF is generated it is not embedded in the PDF but uses its internal
> set.

I tried to prepare the fontset as best I could, but I suspect
zapf-dingbats is a Macintosh font. The "basic font scheme" did
not seem to recognize my version of Symbol as being a member
of the basic font set. My WingDings were ot accepted as a substitute
for Zapf-dingbats.

In any case, I used a Print-To-PostScript method.

    https://i.postimg.cc/RhPCHwjz/to-ps.jpg

Then I used Acrobat distiller, with Embed turned off.

    https://i.postimg.cc/wMY4QPYX/used-adobe-distiller.gif

    https://i.postimg.cc/L6X8M014/to-ps-results.gif                    # 29,111 bytes

This is the LibreOffice Export To PDF result.
All fonts end up subset embedded.

    https://i.postimg.cc/3R1YsgrD/libreoffice-export-pdf-results.gif   # 159,805 bytes

There may be a way to achieve a result, by printing
to PostScript, then hoping that Ghostscript has
sufficient control to avoid embedding the Basic ones.

I used whatever tools I had available, to get a result...

    Paul

[toc] | [prev] | [next] | [standalone]


#55925

From"Carlos E. R." <robin_listas@es.invalid>
Date2019-04-30 13:23 +0200
Message-ID<giqpibFn4tnU1@mid.individual.net>
In reply to#55924
On 29/04/2019 21.46, Paul wrote:
> Carlos E. R. wrote:
>> Hi,
>>
>> First, an explanation:
>>
>> <https://en.wikipedia.org/wiki/PDF#Standard_Type_1_Fonts_(Standard_14_Fonts)>
>>
>>
>> «Fourteen typefaces, known as the standard 14 fonts, have a special
>> significance in PDF documents:
>>
>>     Times (v3) (in regular, italic, bold, and bold italic)
>>     Courier (in regular, oblique, bold and bold oblique)
>>     Helvetica (v3) (in regular, oblique, bold and bold oblique)
>>     Symbol
>>     Zapf Dingbats
>>
>> These fonts are sometimes called the base fourteen fonts.[19] These
>> fonts, or suitable substitute fonts with the same metrics, should be
>> available in most PDF readers, but they are not guaranteed to be
>> available in the reader, and may only display correctly if the system
>> has them installed.[20] Fonts may be substituted if they are not
>> embedded in a PDF.»
>>
>> In the past, if I created a LibreOffice document using only those fonts,
>> the resulting file was small because it did not need to embed them,
>> because most readers have them.
>>
>> But LibreOffice since 5.3 dropped support for Type 1 fonts.
>>
>> <http://www.linux-magazine.com/Online/Blogs/Off-the-Beat-Bruce-Byfield-s-Blog/LibreOffice-drops-Type-1-font-support>
>>
>>
>> OpenOffice apparently still supports them.
>>
>> I find instructions in Google about how to convert purchased fonts, but
>> that is not the case.
>>
>>
>> The problem I have is what fonts I can use, say "times", so that when
>> the PDF is generated it is not embedded in the PDF but uses its internal
>> set.
> 
> I tried to prepare the fontset as best I could, but I suspect
> zapf-dingbats is a Macintosh font. The "basic font scheme" did
> not seem to recognize my version of Symbol as being a member
> of the basic font set. My WingDings were ot accepted as a substitute
> for Zapf-dingbats.
> 
> In any case, I used a Print-To-PostScript method.
> 
>    https://i.postimg.cc/RhPCHwjz/to-ps.jpg
> 
> Then I used Acrobat distiller, with Embed turned off.
> 
>    https://i.postimg.cc/wMY4QPYX/used-adobe-distiller.gif
> 
>    https://i.postimg.cc/L6X8M014/to-ps-results.gif                    #
> 29,111 bytes
> 
> This is the LibreOffice Export To PDF result.
> All fonts end up subset embedded.
> 
>    https://i.postimg.cc/3R1YsgrD/libreoffice-export-pdf-results.gif   #
> 159,805 bytes
> 
> There may be a way to achieve a result, by printing
> to PostScript, then hoping that Ghostscript has
> sufficient control to avoid embedding the Basic ones.
> 
> I used whatever tools I had available, to get a result...

Thanks for trying :-)


-- 
Cheers,
       Carlos E.R.

[toc] | [prev] | [next] | [standalone]


#55926

FromPaul <nospam@needed.invalid>
Date2019-04-30 09:24 -0400
Message-ID<qa9ib8$d4j$1@dont-email.me>
In reply to#55925
Carlos E. R. wrote:
> On 29/04/2019 21.46, Paul wrote:
>> Carlos E. R. wrote:
>>> Hi,
>>>
>>> First, an explanation:
>>>
>>> <https://en.wikipedia.org/wiki/PDF#Standard_Type_1_Fonts_(Standard_14_Fonts)>
>>>
>>>
>>> «Fourteen typefaces, known as the standard 14 fonts, have a special
>>> significance in PDF documents:
>>>
>>>     Times (v3) (in regular, italic, bold, and bold italic)
>>>     Courier (in regular, oblique, bold and bold oblique)
>>>     Helvetica (v3) (in regular, oblique, bold and bold oblique)
>>>     Symbol
>>>     Zapf Dingbats
>>>
>>> These fonts are sometimes called the base fourteen fonts.[19] These
>>> fonts, or suitable substitute fonts with the same metrics, should be
>>> available in most PDF readers, but they are not guaranteed to be
>>> available in the reader, and may only display correctly if the system
>>> has them installed.[20] Fonts may be substituted if they are not
>>> embedded in a PDF.»
>>>
>>> In the past, if I created a LibreOffice document using only those fonts,
>>> the resulting file was small because it did not need to embed them,
>>> because most readers have them.
>>>
>>> But LibreOffice since 5.3 dropped support for Type 1 fonts.
>>>
>>> <http://www.linux-magazine.com/Online/Blogs/Off-the-Beat-Bruce-Byfield-s-Blog/LibreOffice-drops-Type-1-font-support>
>>>
>>>
>>> OpenOffice apparently still supports them.
>>>
>>> I find instructions in Google about how to convert purchased fonts, but
>>> that is not the case.
>>>
>>>
>>> The problem I have is what fonts I can use, say "times", so that when
>>> the PDF is generated it is not embedded in the PDF but uses its internal
>>> set.
>> I tried to prepare the fontset as best I could, but I suspect
>> zapf-dingbats is a Macintosh font. The "basic font scheme" did
>> not seem to recognize my version of Symbol as being a member
>> of the basic font set. My WingDings were ot accepted as a substitute
>> for Zapf-dingbats.
>>
>> In any case, I used a Print-To-PostScript method.
>>
>>    https://i.postimg.cc/RhPCHwjz/to-ps.jpg
>>
>> Then I used Acrobat distiller, with Embed turned off.
>>
>>    https://i.postimg.cc/wMY4QPYX/used-adobe-distiller.gif
>>
>>    https://i.postimg.cc/L6X8M014/to-ps-results.gif                    #
>> 29,111 bytes
>>
>> This is the LibreOffice Export To PDF result.
>> All fonts end up subset embedded.
>>
>>    https://i.postimg.cc/3R1YsgrD/libreoffice-export-pdf-results.gif   #
>> 159,805 bytes
>>
>> There may be a way to achieve a result, by printing
>> to PostScript, then hoping that Ghostscript has
>> sufficient control to avoid embedding the Basic ones.
>>
>> I used whatever tools I had available, to get a result...
> 
> Thanks for trying :-)

What's interesting, is there seems to be a concerted effort
to "bury" PostScript. If you could get output in PostScript
mode, you could use older tools to control font usage
when generating PDF.

The Cairo engine used in LO should really be able to
produce just about any output you can imagine. The trick
will be convincing LO to do that though.

I looked in CUPS, but there didn't seem to be an immediate
GUI way of selecting PostScript to File. But that's just
my unfamiliarity with CUPS. The Print path in LO might
be a way to generate PostScript.

    Paul

[toc] | [prev] | [next] | [standalone]


#55928

From"F. Russell" <fr@random.info>
Date2019-04-30 14:42 +0000
Message-ID<qa9ms901gik@news1.newsguy.com>
In reply to#55926
On Tue, 30 Apr 2019 09:24:57 -0400, Paul wrote:

> 
>  If you could get output in PostScript
> mode, you could use older tools to control font usage
> when generating PDF.
> 

LO outputs in PostScript mode.

The file psprint.conf contains an entry for the Generic Printer

[Generic Printer]
Printer=SGENPRT/Generic Printer
DefaultPrinter=1
Location=
Comment=
Command=
...

The entry "Command=" can include any program or script.
LO will call this program or script with PostScript data
on STDIN.

Thus, the user has a way to grab the Postscript output and
do whatever he pleases.

Another way is to modify the "Printer=" entry to point
to a custom printer configuration within SGENPRT.

Because I don't use that unnecessary and bloated junk called CUPS
this is how I print, on those extremely rare occasions when I 
need to print, using LO.

As a side note, LO is another GNU/Linux package that has been
hijacked by the "progressive" crowd.  As a result, what once
used to be simple and straightforward is now a PITA.

[toc] | [prev] | [next] | [standalone]


#55930

From"Carlos E. R." <robin_listas@es.invalid>
Date2019-04-30 18:44 +0200
Message-ID<gircbaFr3ljU2@mid.individual.net>
In reply to#55928
On 30/04/2019 16.42, F. Russell wrote:
> On Tue, 30 Apr 2019 09:24:57 -0400, Paul wrote:
> 
>>
>>  If you could get output in PostScript
>> mode, you could use older tools to control font usage
>> when generating PDF.
>>
> 
> LO outputs in PostScript mode. 

Not by default anymore, it does in PDF.

LO Tools/Options/LO/Print


-- 
Cheers,
       Carlos E.R.

[toc] | [prev] | [next] | [standalone]


#55931

From"F. Russell" <fr@random.info>
Date2019-04-30 16:53 +0000
Message-ID<qa9uhq01klm@news1.newsguy.com>
In reply to#55930
On Tue, 30 Apr 2019 18:44:26 +0200, Carlos E. R. wrote:

> 
> Not by default anymore, it does in PDF.
> 
> LO Tools/Options/LO/Print
>

WTF!  Then how do you explain the fact that I get PostScript output
by default ALL the time, and I am using LO 6?

Your LO install must be messed up.

As far as font substitution, the printer set-up in psprint.conf
defines the font substitutions.

You need to get control of your system.

[toc] | [prev] | [next] | [standalone]


#55936

From"Carlos E. R." <robin_listas@es.invalid>
Date2019-04-30 23:08 +0200
Message-ID<girrqjFucpfU1@mid.individual.net>
In reply to#55931
On 30/04/2019 18.53, F. Russell wrote:
> On Tue, 30 Apr 2019 18:44:26 +0200, Carlos E. R. wrote:
> 
>>
>> Not by default anymore, it does in PDF.
>>
>> LO Tools/Options/LO/Print
>>
> 
> WTF!  Then how do you explain the fact that I get PostScript output
> by default ALL the time, and I am using LO 6?
> 
> Your LO install must be messed up.

It isn't. Fresh install.

> 
> As far as font substitution, the printer set-up in psprint.conf
> defines the font substitutions.

For printing. I'm not printing. I'm exporting to PDF.

-- 
Cheers,
       Carlos E.R.

[toc] | [prev] | [next] | [standalone]


#55929

From"Carlos E. R." <robin_listas@es.invalid>
Date2019-04-30 18:41 +0200
Message-ID<girc6jFr3ljU1@mid.individual.net>
In reply to#55926
On 30/04/2019 15.24, Paul wrote:
> Carlos E. R. wrote:


> 
> What's interesting, is there seems to be a concerted effort
> to "bury" PostScript. If you could get output in PostScript
> mode, you could use older tools to control font usage
> when generating PDF.

I can generate postscrip, but that way I kill the possibility of the
advanced conversion to PDF (not printing to PDF) has, like creating
table of contents and links (thinking of LO in Linux).  It seems that to
create what I want I need OpenOffice instead, or find some
postprocessing tool that exchanges fonts.

> 
> The Cairo engine used in LO should really be able to
> produce just about any output you can imagine. The trick
> will be convincing LO to do that though.

LO removed support for type 1 fonts. It would have to be some equivalent
font, and then doing the replacement at some step.


> I looked in CUPS, but there didn't seem to be an immediate
> GUI way of selecting PostScript to File. But that's just
> my unfamiliarity with CUPS. The Print path in LO might
> be a way to generate PostScript.

No, it is done at the application level. In LO, Tools/Options/LO/Print,
then unclick "PDF as standard job format". CUPS should be able to cope
with both, and in the case of my printer, it eats PS natively, so it
should be advantageous.

-- 
Cheers,
       Carlos E.R.

[toc] | [prev] | [standalone]


Back to top | Article view | alt.os.linux


csiph-web