Closed pablgonz closed 3 years ago
That is hardcoded in luapstricks.lua: usyr
is the StandardSymL font. Changing it to
['StandardSymbolsPS'] = 'kpse:StandardSymbolsPS.otf',
-- ['StandardSymbolsPS'] = 'usyr',
['Dingbats'] = 'uzdr',
loads the otf font. But this works only if the font is present.
------------------------------------ ----------------- ---------------- --- --- --- ---------
SVXRAH+TeXGyreHeros-Regular CID Type 0C Identity-H yes yes yes 4 0
VZYYAP+StandardSymbolsPS CID Type 0C Identity-H yes yes yes 5 0
Oh, I get it, you can have something like this: "If .otf
found useelse use type1
?"
@hvoss49 Any reason why latex>dvips>ps2pdf
points to Symbol
(which is not embedded) instead of StandardSymL
(type1) which is embedded by default?
That is hardcoded in luapstricks.lua:
usyr
is the StandardSymL font. Changing it to['StandardSymbolsPS'] = 'kpse:StandardSymbolsPS.otf', -- ['StandardSymbolsPS'] = 'usyr', ['Dingbats'] = 'uzdr',
loads the otf font.
It should be enough to just remove the StandardSymbolPS
line altogether, then the font should be looked up and found by font name. It still requires the OTF font to be present though.
you can have something like this: "If
.otf
found useelse usetype1
?"
It's possible, but it's relatively slow (Looking for a font which is installed is fast since it can be cached, looking for a font which is not installed is much slower since it requires searching in all relevant places for the font.) and it makes problems much harder to analyze and harder to make reproducible: If a font is silently replaced by a slightly different one some systems than documents which rely on specific aspects of the font might not work on other systems without useful errors (since the font is still "found", it's just a completely different one) (It's not even safe to install additional fonts since these might break documents which expect the fallback etc.).
I see, this is more complicated than I thought in my mind. The issue is that if you remove the replacement line it will point to Symbol
(which is in all systems) instead of pointing to StandardSymL
(type1) which would be more suitable (from my point of view).
Oh, I get it, you can have something like this: "If
.otf
found useelse usetype1
?"@hvoss49 Any reason why
latex>dvips>ps2pdf
points toSymbol
(which is not embedded) instead ofStandardSymL
(type1) which is embedded by default?
Symbol is a standard PS font and on all PS printer available, no reason to embed the font. If you still want it embedded, then use
ps2pdf -dPDFSETTINGS=/prepress ...
Some GhostScript installations do not provide the GhostScript fonts, then Symbol is always used.
I see, this is more complicated than I thought in my mind. The issue is that if you remove the replacement line it will point to
Symbol
(which is in all systems) instead of pointing toStandardSymL
(type1) which would be more suitable (from my point of view).
That doesn't matter if Symbol, the PS font, or StandaedSymL, the URW equivalent font, is used!
@hvoss49 You're right, but I don't really like having a non-embedded font :(
Read my other comment with the -dPDFSETTINGS=/prepress
...
Oh...I had completely forgotten...yet another line to add :D
@hvoss49 @zauguin To close this point, what is the position?
Leave it as it is (which works nice) or force the user to install the .otf
font (which is not installed by default in win10 by gs
and fedora for example).
Leave it as it is ...
I have a small doubt regarding the mapping of the
StandardSymbolsPS.otf
.I have installed the font from (https://github.com/ArtifexSoftware/urw-base35-fonts/blob/master/fonts/StandardSymbolsPS.otf)
But when executing this test:
I always get a
Type 1
:I have asked Paulo to do the test on his system (also fedora 34) and the result is the same and I have tried to do the test on win10 and the same thing happens.
Any idea?