GithubHelp home page GithubHelp logo

mynameiscosmo / fontawesome-latex Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 747 KB

Python utility to download and create FontAwesome LaTeX mappings

Python 81.25% Makefile 3.27% TeX 15.48%
font-awesome fontawesome5 latex tex

fontawesome-latex's Issues

Generate Pro Mapping

The current mapping is only good for Font Awesome 5 Free

The quirks that go with this is that Font Awesome 5 Pro adds a lot of icons not in Font Awesome 5 Free.
Either a diff can be generated of the icon sets (and built into the release with \ifdef) or separate .stys could be provides for pro and free mappings.

Write tests

Should implement pytests for the heck of it.

Add Conditional for Pro Icons

The \ifthen condition should be applied to the pro icons.yml in the release.
Currently, the release is only for Font Awesome 5 Free.

Something like:

% freeiconhere
\iffontawesome@pro
% proiconhere
\fi
% freeiconhere

This is also pending some licensing inquiries about the metadata included in the Font Awesome 5 Pro package.

Evaluate Nomenclature

command expansion
\fa \faicon
\fas \textbf{\faicon}
\fal \textit{\faicon}
\faThumbsUp % generates a regular Thumbs Up
\fasThumbsUp % generates a solid Thumbs Up
\falThumbsUp % generates a light Thumbs Up (pro)

Auto-Detect Fonts

Fonts should be automatically detected in fontawesome-free-5.x.xx/use-on-desktop
Currently, the following is used to declare packages to build:

packages = { 
    'regular': {
        'name': 'fontawesomefree',  # The name of the latex .sty file
        'desc': 'Font Awesome 5 Free Regular',  # Description of the font variant
        'font': 'FontAwesome 5 Free Regular',  # The font name as registered when installed
        'short': 'far',  # the short for FontAwesome icons, i.e. \faicon
        'cmd': 'faicon',  # The command for FontAwesome icons, i.e. \faicon
        'file': 'fontawesomefree.sty'  # The file name generated
    },  
    ... do this for Solid and Brand variants
}

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.