Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

moderncv example won't compile on Tectonic #157

Open
kozross opened this issue Feb 8, 2018 · 11 comments
Open

moderncv example won't compile on Tectonic #157

kozross opened this issue Feb 8, 2018 · 11 comments

Comments

@kozross
Copy link

@kozross kozross commented Feb 8, 2018

This is what I get in the terminal when I try:

[koz@Sebastian data-wrangling-2018]$ make
tectonic --outdir=intermediate cv.tex
note: this is a BETA release; ask questions and report bugs at https://tectonic.newton.cx/
Running TeX ...
note: indexing https://purl.org/net/pkgwpub/tectonic-default
note: resolved to https://dl.bintray.com/pkgw/tectonic/tl2016extras/2016.0r4/tlextras-2016.0r4.tar
note: downloading SHA256SUM
note: downloading moderncv.cls
note: downloading colortbl.sty
note: downloading ecrm1095.tfm
note: downloading lmodern.sty
note: downloading tweaklist.sty
note: downloading moderncvcollection.sty
note: downloading moderncvcompatibility.sty
note: downloading moderncvstylecasual.sty
note: downloading moderncviconsawesome.sty
error: something bad happened inside TeX; its output follows:

===============================================================================
(cv.tex
LaTeX2e <2016/03/31>
Babel <3.9r> and hyphenation patterns for 83 language(s) loaded.
(moderncv.cls
Document Class: moderncv 2015/07/28 v2.0.0 modern curriculum vitae and letter d
ocument class
(size11.clo) (etoolbox.sty) (ifthen.sty) (xcolor.sty (color.cfg) (xetex.def
(infwarerr.sty) (ltxcmds.sty)) (colortbl.sty (array.sty))) (ifxetex.sty)
(ifluatex.sty) (fontenc.sty (t1enc.def)) (lmodern.sty) (url.sty) (graphicx.sty
(keyval.sty) (graphics.sty (trig.sty) (graphics.cfg))) (fancyhdr.sty)
(tweaklist.sty) (calc.sty) (xparse.sty (expl3.sty (expl3-code.tex)
(l3xdvipdfmx.def))) (microtype.sty (microtype-xetex.def) (microtype.cfg))
(moderncvcollection.sty) (moderncvcompatibility.sty)) (moderncvstylecasual.sty
(moderncviconsawesome.sty (fontawesome.sty (fontawesomesymbols-generic.tex)
(fontspec.sty (fontspec-xetex.sty (fontenc.sty (eu1enc.def) (eu1lmr.fd))
(xunicode.sty (t3enc.def (eu1lmss.fd))) (fontspec.cfg)))

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: "font-not-found"
! 
! The font "FontAwesome" cannot be found.
! 
! See the fontspec documentation for further information.
! 
! For immediate help type H <return>.
!...............................................  
                                                  
l.45 \newfontfamily{\FA}{FontAwesome}
                                     
No pages of output.
Transcript written on cv.log.
===============================================================================

error: halted on potentially-recoverable error as specified
make: *** [makefile:4: cv.pdf] Error 1

Example in question (download link).

@HaoZeke

This comment has been minimized.

Copy link

@HaoZeke HaoZeke commented Feb 15, 2018

Do you have FontAwesome installed?

@kozross

This comment has been minimized.

Copy link
Author

@kozross kozross commented Feb 15, 2018

The only thing called FontAwesome I have in my distro's package manager is an .sty, which I assume Tectonic should pull down.

@HaoZeke

This comment has been minimized.

Copy link

@HaoZeke HaoZeke commented Feb 15, 2018

No, you'll need a .otf or a .ttf installed...
Does this work without tectonic?

@kozross

This comment has been minimized.

Copy link
Author

@kozross kozross commented Feb 17, 2018

@HaoZeke: Yes, it can be built using TeXLive with latexmk. fontawesome is a LaTeX package which TeXLive contains.

@thomaseizinger

This comment has been minimized.

Copy link

@thomaseizinger thomaseizinger commented Aug 5, 2018

I ran into the same problem. The casual style of moderncv depends on FontAwesome being locally installed. On my ubuntu machine, I could install it through sudo apt install fonts-font-awesome. I also run tectonic through a docker image, so I had to mount my /usr/share/fonts folder into the docker image.

You may also need to reload your font-cache after installing the font.

@kozross

This comment has been minimized.

Copy link
Author

@kozross kozross commented Aug 5, 2018

@thomaseizinger Perhaps, but the fact is that it does work with TeXLive, or at least it did in my case. I certainly didn't locally install anything like FontAwesome, and I'm not sure if Gentoo even packages it.

@thomaseizinger

This comment has been minimized.

Copy link

@thomaseizinger thomaseizinger commented Aug 5, 2018

@kozross Did you check if the resulting PDF had the actual FontAwesome icons in it? Maybe some kind of fallback was selected on your local installation?

Also, if you installed the full TeXLive package, it may have come as a peer-dependency.

@kozross

This comment has been minimized.

Copy link
Author

@kozross kozross commented Aug 5, 2018

I just found and installed Font Awesome. This is the list of files the Gentoo package in question contains:

[koz@Sebastian downloads]$ equery f fontawesome
 * Searching for fontawesome ...
 * Contents of media-fonts/fontawesome-5.1.0:
/usr
/usr/share
/usr/share/fonts
/usr/share/fonts/fontawesome
/usr/share/fonts/fontawesome/Font Awesome 5 Brands-Regular-400.otf
/usr/share/fonts/fontawesome/Font Awesome 5 Free-Regular-400.otf
/usr/share/fonts/fontawesome/Font Awesome 5 Free-Solid-900.otf
/usr/share/fonts/fontawesome/encodings.dir
/usr/share/fonts/fontawesome/fa-brands-400.ttf
/usr/share/fonts/fontawesome/fa-regular-400.ttf
/usr/share/fonts/fontawesome/fa-solid-900.ttf
/usr/share/fonts/fontawesome/fonts.dir
/usr/share/fonts/fontawesome/fonts.scale

I then ran fc-cache to reload the font cache. Tried to compile the given example with Tectonic again - still same error.

@thomaseizinger

This comment has been minimized.

Copy link

@thomaseizinger thomaseizinger commented Aug 8, 2018

FYI, I have an actual FontAwesome.otf file installed. I am not aware on the details about the font resolution works but maybe you need some kind of alias so that the font can be found as FontAwesome?

~ fc-list | grep -i FontAwesome
/usr/share/fonts/opentype/font-awesome/FontAwesome.otf: FontAwesome:style=Regular
/usr/share/fonts/woff/font-awesome/fontawesome-webfont.woff: FontAwesome:style=Regular
/usr/share/fonts/truetype/font-awesome/fontawesome-webfont.ttf: FontAwesome:style=Regular
@kozross

This comment has been minimized.

Copy link
Author

@kozross kozross commented Aug 8, 2018

Perhaps. For reference, this is the result of ``fc-list | grep -i FontAwesome' for me:

/usr/share/fonts/fontawesome/fa-regular-400.ttf: Font Awesome 5 Free:style=Regular
/usr/share/fonts/fontawesome/fa-brands-400.ttf: Font Awesome 5 Brands:style=Regular
/usr/share/fonts/fontawesome/Font Awesome 5 Free-Solid-900.otf: Font Awesome 5 Free,Font Awesome 5 Free Solid:style=Solid
/usr/share/fonts/fontawesome/fa-solid-900.ttf: Font Awesome 5 Free:style=Solid
/usr/share/fonts/fontawesome/Font Awesome 5 Brands-Regular-400.otf: Font Awesome 5 Brands,Font Awesome 5 Brands Regular:style=Regular
/usr/share/fonts/fontawesome/Font Awesome 5 Free-Regular-400.otf: Font Awesome 5 Free,Font Awesome 5 Free Regular:style=Regular
@jmatraszek

This comment has been minimized.

Copy link

@jmatraszek jmatraszek commented Oct 7, 2019

I had the same issue, but it seems that this is an issue with fontawesome.sty package — it only supports Font Awesome version 4. Version 5 was released AFAIR ~1 year ago and most distros already package version 5, which uses different naming convention for font files. There is a fontawesome5 package by the same author, but moderncv will probably always stay on fontawesome & 4th version of Font Awesome.

For Arch the fix was to uninstall otf-font-awesome official package which packages version 5, and install ttf-font-awesome-4 which packages version 4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.