Git Product home page Git Product logo

Comments (5)

zauguin avatar zauguin commented on May 23, 2024 1

Hey,
I am the maintainer of fontawesome5. The problem is that the defaultfontfeatures apply to Academicons, but they do not make any sense there: There are no lowercase characters, so their scale can not be matched. I think fontspec should ignore MatchLowercase here, so this might be a fontspec bug.
The fontawesome5 package avoids this by not using fontspec. This should be possible even if "only" a ttf file is available, so if @diogo-fernan is interested I could write a Pull-Request to replace fontspec with a .fd file tomorrow.

In the short term @JeffreyRacine could probably fix the problem by moving \usepackage{academicons} before \defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}.

from academicons.

diogo-fernan avatar diogo-fernan commented on May 23, 2024

Hey Jeffrey,

It appears that the issue might be related with the lack of an OpenType Font (OTF) file from the academicons font, which is not the case with fontawesome5 that ships with an *.otf file. This can be seen in tufontawesomebrands.fd:

\DeclareFontShape{TU}{fontawesomebrands}{regular}{n}
  {<-> \UnicodeFontFile{FontAwesome5Brands-Regular-400.otf}{script=latn;}}{}

I will try to address this in the coming days.

Cheers,
Diogo

from academicons.

JeffreyRacine avatar JeffreyRacine commented on May 23, 2024

Thanks for your kind response. It would be great to have this resolved, and accept my gratitude in advance. Best of luck!

from academicons.

JeffreyRacine avatar JeffreyRacine commented on May 23, 2024

Thanks for taking the time to look into this. I am using R Markdown and pandoc which automatically generates the placement of \usepackage{}, so your helpful suggestion works if I manually edit the LaTeX file that is created by pandoc... anything you can do is most appreciated to resolve the issue...

from academicons.

diogo-fernan avatar diogo-fernan commented on May 23, 2024

Feel free to make a pull request @zauguin :-)

Thanks!

Diogo

from academicons.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.