On 05/20/2020 09:08 PM, Ashley Dixon wrote:
> On Wed, May 20, 2020 at 08:12:54PM -0600, the...@sys-concept.com wrote:
>> I think so too, that that is why I'm puzzled.
>> Here is the form.
> 
> Thanks for attaching the document, but it's huge !  I  placed  the  emphasis  
> on
> _minimal_ for a reason. ;-)
> 
> Anyway, I'm able to replicate this, and I'd say it's  likely  to  be  a  bug  
> in
> Evince.  Using GhostScript [1] to  retroactively  embed  all  the  fonts  
> allows
> Evince to render it without issue, pointing to an  issue  causing  it  to  
> avoid
> loading external fonts.
> 
>         gs \
>            -dCompatibilityLevel=1.4 \
>            -dPDFSETTINGS=/screen \
>            -dCompressFonts=true \
>            -dSubsetFonts=true \
>            -dNOPAUSE \
>            -dBATCH \
>            -sDEVICE=pdfwrite \
>            -sOutputFile=form-fixed.pdf \
>            -c ".setpdfwrite <</NeverEmbed [ ]>> setdistillerparams" \
>            -f form-original.pdf
> 
> Although, having to do this on all your documents is obviously  suboptimal,  
> and
> also can make them quite a bit larger.  Strangely, after testing on  my  
> Manjaro
> QEMU virtual machine, everything behaves correctly; the P.D.F.\ without 
> embedded
> Dingbats renders correctly.
> 
> [Solution]
> 
> Evince is substituting ZapfDingbats with another font.  On my  system,  this  
> is

> Liberation Sans  Regular  (Properties->Fonts->ZapfDingbats).   This  means  
> that
> Evince cannot find the font "ZapfDingbats".  To rectify this, download "ITC 
> Zapf
> Dingbats" from  [2]  and  unzip  the  two  files  into  ~/.local/share/fonts  
> or
> /usr/share/fonts.
> 
> However, "ZapfDingbats" and "ITC Zapf Dingbats" have  a  slight  name  
> mismatch,
> which will still cause Evince to substitute it with an  unsuitable  
> alternative.
> Fontconfig allows you to  alias  fonts  using  its  standard  XML  
> configuration
> method.  Add the following to /etc/fonts/local.conf (create the file if it  
> does
> not exist):
> 
> <?xml version="1.0"?>
> <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
> <fontconfig>
>         <alias>
>                 <family>ZapfDingbats</family>
>                 <prefer><family>ITC Zapf Dingbats</family></prefer>
>                 <default><family>fixed</family></default>
>         </alias>
> </fontconfig>
> 
> This will cause Evince to load the document correctly.  You might  have  to  
> run
> `fc-cache` after you've created the <alias> stanza, although I doubt it.
> 
> Does this fix it ?
> 
> [1] https://stackoverflow.com/a/2981689
> [2] https://freefontsfamily.com/download/itc-zapf-dingbats
> 

Hi Ashley,

Thank you for the hint. I unzip the "ITC Zapf Dingbats.zip" to
/usr/share/fonts/itc-zapf-dingbats

and created as you suggested: /etc/fonts/local.conf with the content
above and the "check-mark" is showing perfectly.

Thank you for the solution!

Regards,
Thelma


Reply via email to