You are not logged in.

#1 2020-12-01 13:56:18

Serrg
Member
Registered: 2019-12-21
Posts: 23

Problem with mathematical symbols in pdf-viewer

Hello. I have a problem with some mathematical symbols in Mate Desktop standtart prf-viewer (Atril).

Here is document

What i see

c2a60490eaa76ba0b4dcd779d9794b48.png

I have Installed such ttf-fonts as:

ttf-croscore        
ttf-symbola (from aur)
ttf-droid          
ttf-opensans

And also base microsoft fonts from windows installation. (I have created own package)

Candara.ttf
Candarab.ttf
Candarai.ttf
Candaral.ttf
Candarali.ttf
Candaraz.ttf
arial.ttf
arialbd.ttf
arialbi.ttf
ariali.ttf
ariblk.ttf
calibri.ttf
calibrib.ttf
calibrii.ttf
calibril.ttf
calibrili.ttf
calibriz.ttf
cambria.ttc
cambriab.ttf
cambriai.ttf
cambriaz.ttf
comic.ttf
comicbd.ttf
comici.ttf
comicz.ttf
consola.ttf
consolab.ttf
consolai.ttf
consolaz.ttf
constan.ttf
constanb.ttf
constani.ttf
constanz.ttf
corbel.ttf
corbelb.ttf
corbeli.ttf
corbell.ttf
corbelli.ttf
corbelz.ttf
cour.ttf
courbd.ttf
courbi.ttf
couri.ttf
framd.ttf
framdit.ttf
georgia.ttf
georgiab.ttf
georgiai.ttf
georgiaz.ttf
l_10646.ttf
lucon.ttf
sylfaen.ttf
tahoma.ttf
tahomabd.ttf
times.ttf
timesbd.ttf
timesbi.ttf
timesi.ttf
trebuc.ttf
trebucbd.ttf
trebucbi.ttf
trebucit.ttf
verdana.ttf
verdanab.ttf
verdanai.ttf
verdanaz.ttf

Some pdffonts info:

name                                 type              encoding         emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
Symbol                               Type 1            Symbol           no  no  no      28  0
Times-Bold                           Type 1            Standard         no  no  no      27  0
Times-BoldItalic                     Type 1            Custom           no  no  no      29  0
Times-Roman                          TrueType          WinAnsi          no  no  no      43  0
Times-Roman                          Type 1            Custom           no  no  no      30  0
Times-Italic                         Type 1            Standard         no  no  no      17  0
DGPNNR+AvantGarde-Book               Type 1C           Builtin          yes yes no      13  0

I also have created config in /etc/fonts/conf.d/

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
       <alias binding="same">
         <family>Symbol</family>
         <accept>
         <family>Symbola</family>
         </accept>
       </alias>
</fontconfig>

After this become little better. some symbols have appeared. But on can't undrerstand what else i need to do, to display symbols on my first pic?

Last edited by Serrg (2020-12-01 13:58:26)

Offline

#2 2020-12-01 14:20:28

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,513
Website

Re: Problem with mathematical symbols in pdf-viewer

What is the output of `fc-match Symbol` prior to adding that rule for Symbola?

The pdf looks fine for me on mupdf.  The Symbol font is provided on my system by ttf-dejavu, but even after removing that it looked fine as Symbol was than matched by Verdana from ttf-ms-fonts.

Have you tried any other pdf viewer?

Last edited by Trilby (2020-12-01 14:22:21)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2020-12-01 14:39:19

Serrg
Member
Registered: 2019-12-21
Posts: 23

Re: Problem with mathematical symbols in pdf-viewer

Trilby wrote:

What is the output of `fc-match Symbol` prior to adding that rule for Symbola?

The pdf looks fine for me on mupdf.  The Symbol font is provided on my system by ttf-dejavu, but even after removing that it looked fine as Symbol was than matched by Verdana from ttf-ms-fonts.

Have you tried any other pdf viewer?

i have tried qpfviewer, same problem(

fc-match output:

fc-match Symbol
Symbola.otf: "Symbola" "Regular"

Offline

#4 2020-12-01 14:43:56

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,513
Website

Re: Problem with mathematical symbols in pdf-viewer

Is that fc-match output from before you added the symbola rule?  I was assuming before you added the rule to use symbola, that some other font was used - I'd like to know which one.  I'm not familiar with ttf-symbola so it'd be good to rule that out as the cause of the problems.  As mentioned I can see that when the Symbol font is matched/provided by ttf-dejavu or Verdana (from ttf-ms-fonts) the pdf displays fine here.

I was going to try ttf-symbola to test here, but apparently installing that font requires installing 250MB of depdencies including GTK3.

Last edited by Trilby (2020-12-01 14:45:49)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2020-12-01 14:48:32

Serrg
Member
Registered: 2019-12-21
Posts: 23

Re: Problem with mathematical symbols in pdf-viewer

Trilby wrote:

Is that fc-match output from before you added the symbola rule?  I was assuming before you added the rule to use symbola, that some other font was used - I'd like to know which one.  I'm not familiar with ttf-symbola so it'd be good to rule that out as the cause of the problems.  As mentioned I can see that when the Symbol font is matched/provided by ttf-dejavu or Verdana (from ttf-ms-fonts) the pdf displays fine here.

I was going to try ttf-symbola to test here, but apparently installing that font requires installing 250MB of depdencies including GTK3.

Thank you for answer. Nope, i have created my own config for that font. I will try ttf-dejavu

Offline

#6 2020-12-01 15:10:09

Serrg
Member
Registered: 2019-12-21
Posts: 23

Re: Problem with mathematical symbols in pdf-viewer

So, i have tried mupdf. It opens without any problems.

Offline

Board footer

Powered by FluxBB