Opened 6 years ago

Closed 3 years ago

#55802 closed defect (fixed)

a dejavu font is not found during auto-multiple-choice building

Reported by: guillope Owned by: nortcele
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: akimd (Akim Demaille), m1k7
Port: auto-multiple-choice

Description

see the main.log file for the error

Attachments (1)

main.log (2.2 MB) - added by guillope 6 years ago.

Change History (13)

Changed 6 years ago by guillope

Attachment: main.log added

comment:1 Changed 6 years ago by mf2k (Frank Schima)

Owner: set to nortcele
Port: auto-multiple-choice added
Status: newassigned

In the future, please fill in the Port field and Cc the port maintainers (port info --maintainers auto-multiple-choice).

comment:2 Changed 6 years ago by nortcele

Is the DejaVu font family installed in your /Library/Fonts folder?

You can find additional information on the installation of auto-multiple-choice on https://project.auto-multiple-choice.net/projects/auto-multiple-choice/wiki/Installing_AMC_on_macOS (in English) or https://project.auto-multiple-choice.net/projects/auto-multiple-choice/wiki/Installation_d'AMC_sous_macOS (in French).

comment:3 Changed 6 years ago by akimd (Akim Demaille)

Cc: akimd added

comment:4 Changed 6 years ago by akimd (Akim Demaille)

I have texlive-extra-font installed, so the font is provided with LaTeX. However the logs have:

xmf-texlive/fonts/type1/urw/helvetic/uhvb8a.pfbkpathsea:make_tex: Invalid fontname `DejaVu Serif', contains ' '
></opt/local/share/texmf-texlive
/fonts/type1/urw/helvetic/uhvr8a.pfb

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: "font-not-found"
! 
! The font "DejaVu Serif" cannot be found.
! 
! See the fontspec documentation for further information.
! 
! For immediate help type H <return>.
!...............................................  
                                                  
l.19 \setmainfont{DejaVu Serif}
                               
? 
! Emergency stop.
!...............................................  
                                                  
l.19 \setmainfont{DejaVu Serif}

So it looks like a problem in the way amc uses this font: it should use a more TeX-like name, without spaces in it.

comment:5 Changed 6 years ago by akimd (Akim Demaille)

So downloading https://github.com/dejavu-fonts/dejavu-fonts/releases/download/version_2_37/dejavu-fonts-ttf-2.37.zip and {mv ttf/*.ttf /Library/Fonts} does work. However:

  • I don't need the Japanese documentation, I would love to not have to download things I don't need (variant?)
  • if I _have_ to have these fonts, then I'd rather have those coming from TeXlive be used
  • and finally, if there is no way out, then the port file should be clear about this and tell users to download and install that file by hand.

Cheers!

comment:6 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: m1k7 added

Has duplicate #56360.

comment:7 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

This is still a problem; please fix.

comment:8 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

comment:9 Changed 5 years ago by kencu (Ken)

BTW, that same issue is what prompted this fix in ghc, and which caused me some troubles as well.

Last edited 5 years ago by kencu (Ken) (previous) (diff)

comment:10 Changed 4 years ago by malbert-insa

Concerning the Invalid fontname `DejaVu Serif', contains ' ' issue, a solution (in french) found by Franck Toussaint is given in ​https://project.auto-multiple-choice.net/issues/538

"Il s’agit d’un problème d’installation des polices sous mac. Installation des trois polices avec l’app Livre des polices :

1) Dans Préférences -> Emplacement installation par défaut : choisir Ordinateur à la place de Utilisateur.

2) Installez successivement les trois polices en cliquant sur le bouton Ajouter dans la barre d’outils de Livre des polices, localisez et sélectionnez les polices puis cliquez sur ouvrir."

comment:11 Changed 4 years ago by kencu (Ken)

and in english:

Hello,

I found the source of the problem last night. It was a problem installing fonts on mac. Here is what could be added in the installation tutorial to help the community: Install all three fonts with the Font Book app. 1) In Preferences -> Default installation location: choose Computer instead of User. 2) Successively install the three fonts by clicking on the Add button in the Font Book toolbar, locate and select the fonts, then click open. In the meantime, thank you for your support and for this great tool. Best regards. Franck

As I spent a half-day on this dejavu-sans issue with ghc I'm curious too.

Why does the MacPorts version of the dejavu font not fill the need, but a manually-installed version of the font in /Library/Fonts does work?

Can our font version in MacPorts be fixed to work?

If it cannot, can we file test for the presence of the needed font(s) and provide some instructions?

K

comment:12 Changed 3 years ago by nortcele

Resolution: fixed
Status: assignedclosed

In 544c565df94e99be2ac0dc3a8042626adb461581/macports-ports (master):

auto-multiple-choice-devel: update to version 1.5.0-rc1

auto-multiple-choice-devel: update to version 1.5.0-rc1

  • Update to 1.5.0-rc1-6-g83952a21
  • Reorganize port to use pre-compiled sources with embedded documentation to avoid missing font errors during build.

Close #55802
Close #58936

Note: See TracTickets for help on using tickets.