fontawesome5 monospaced icons [duplicate]












2
















This question already has an answer here:




  • How to use Font Awesome 5 with fixed width

    2 answers




I have been trying to make icons from fontawesome5 monospaced without much success:



documentclass[12pt]{article}

usepackage{fontspec}
usepackage{fontawesome5}

begin{document}
section{MWE}
The faIcon{desktop} and faIcon{mobile} icons should be the same width.
end{document}


I tried wrapping the faIcon{} commands in texttt{}, which did nothing.



Is there a way to do this?










share|improve this question













marked as duplicate by Marcel Krüger, JouleV, Raaja, Stefan Pinnow, user36296 Apr 1 at 16:26


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.



















  • In the meantime, I found an answer to the question that I feel is a bit of an overkill: wrapping the symbols in square boxes, as suggested in the accepted answer of this thread. Isn't there a better way?

    – Tomáš Sláma
    Apr 1 at 13:20













  • It is. Should I flag the question as a duplicate?

    – Tomáš Sláma
    Apr 1 at 14:20
















2
















This question already has an answer here:




  • How to use Font Awesome 5 with fixed width

    2 answers




I have been trying to make icons from fontawesome5 monospaced without much success:



documentclass[12pt]{article}

usepackage{fontspec}
usepackage{fontawesome5}

begin{document}
section{MWE}
The faIcon{desktop} and faIcon{mobile} icons should be the same width.
end{document}


I tried wrapping the faIcon{} commands in texttt{}, which did nothing.



Is there a way to do this?










share|improve this question













marked as duplicate by Marcel Krüger, JouleV, Raaja, Stefan Pinnow, user36296 Apr 1 at 16:26


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.



















  • In the meantime, I found an answer to the question that I feel is a bit of an overkill: wrapping the symbols in square boxes, as suggested in the accepted answer of this thread. Isn't there a better way?

    – Tomáš Sláma
    Apr 1 at 13:20













  • It is. Should I flag the question as a duplicate?

    – Tomáš Sláma
    Apr 1 at 14:20














2












2








2









This question already has an answer here:




  • How to use Font Awesome 5 with fixed width

    2 answers




I have been trying to make icons from fontawesome5 monospaced without much success:



documentclass[12pt]{article}

usepackage{fontspec}
usepackage{fontawesome5}

begin{document}
section{MWE}
The faIcon{desktop} and faIcon{mobile} icons should be the same width.
end{document}


I tried wrapping the faIcon{} commands in texttt{}, which did nothing.



Is there a way to do this?










share|improve this question















This question already has an answer here:




  • How to use Font Awesome 5 with fixed width

    2 answers




I have been trying to make icons from fontawesome5 monospaced without much success:



documentclass[12pt]{article}

usepackage{fontspec}
usepackage{fontawesome5}

begin{document}
section{MWE}
The faIcon{desktop} and faIcon{mobile} icons should be the same width.
end{document}


I tried wrapping the faIcon{} commands in texttt{}, which did nothing.



Is there a way to do this?





This question already has an answer here:




  • How to use Font Awesome 5 with fixed width

    2 answers








typewriter fontawesome fontawesome5






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 1 at 13:14









Tomáš SlámaTomáš Sláma

1158




1158




marked as duplicate by Marcel Krüger, JouleV, Raaja, Stefan Pinnow, user36296 Apr 1 at 16:26


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









marked as duplicate by Marcel Krüger, JouleV, Raaja, Stefan Pinnow, user36296 Apr 1 at 16:26


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.















  • In the meantime, I found an answer to the question that I feel is a bit of an overkill: wrapping the symbols in square boxes, as suggested in the accepted answer of this thread. Isn't there a better way?

    – Tomáš Sláma
    Apr 1 at 13:20













  • It is. Should I flag the question as a duplicate?

    – Tomáš Sláma
    Apr 1 at 14:20



















  • In the meantime, I found an answer to the question that I feel is a bit of an overkill: wrapping the symbols in square boxes, as suggested in the accepted answer of this thread. Isn't there a better way?

    – Tomáš Sláma
    Apr 1 at 13:20













  • It is. Should I flag the question as a duplicate?

    – Tomáš Sláma
    Apr 1 at 14:20

















In the meantime, I found an answer to the question that I feel is a bit of an overkill: wrapping the symbols in square boxes, as suggested in the accepted answer of this thread. Isn't there a better way?

– Tomáš Sláma
Apr 1 at 13:20







In the meantime, I found an answer to the question that I feel is a bit of an overkill: wrapping the symbols in square boxes, as suggested in the accepted answer of this thread. Isn't there a better way?

– Tomáš Sláma
Apr 1 at 13:20















It is. Should I flag the question as a duplicate?

– Tomáš Sláma
Apr 1 at 14:20





It is. Should I flag the question as a duplicate?

– Tomáš Sláma
Apr 1 at 14:20










1 Answer
1






active

oldest

votes


















2














The key is to use the "fixed" package option, usepackage[fixed]{fontawesome5}.



documentclass[12pt]{article}

%usepackage{fontspec}
usepackage[fixed]{fontawesome5}

begin{document}
section{MWE}
The faIcon{desktop} and faIcon{mobile} icons should be the same width.

rmfamily:\
faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}\
faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}

ttfamily
ttfamily:\
faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}\
faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}
end{document}


enter image description here



Note that the fixed widths can vary if, for example, you are in a different font family such as ttfamily. They will still be fixed width, just a different fixed width from rmfamily.






share|improve this answer


























  • I can't believe I missed that in the package documentation. Thank you!

    – Tomáš Sláma
    Apr 1 at 13:23




















1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2














The key is to use the "fixed" package option, usepackage[fixed]{fontawesome5}.



documentclass[12pt]{article}

%usepackage{fontspec}
usepackage[fixed]{fontawesome5}

begin{document}
section{MWE}
The faIcon{desktop} and faIcon{mobile} icons should be the same width.

rmfamily:\
faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}\
faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}

ttfamily
ttfamily:\
faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}\
faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}
end{document}


enter image description here



Note that the fixed widths can vary if, for example, you are in a different font family such as ttfamily. They will still be fixed width, just a different fixed width from rmfamily.






share|improve this answer


























  • I can't believe I missed that in the package documentation. Thank you!

    – Tomáš Sláma
    Apr 1 at 13:23


















2














The key is to use the "fixed" package option, usepackage[fixed]{fontawesome5}.



documentclass[12pt]{article}

%usepackage{fontspec}
usepackage[fixed]{fontawesome5}

begin{document}
section{MWE}
The faIcon{desktop} and faIcon{mobile} icons should be the same width.

rmfamily:\
faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}\
faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}

ttfamily
ttfamily:\
faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}\
faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}
end{document}


enter image description here



Note that the fixed widths can vary if, for example, you are in a different font family such as ttfamily. They will still be fixed width, just a different fixed width from rmfamily.






share|improve this answer


























  • I can't believe I missed that in the package documentation. Thank you!

    – Tomáš Sláma
    Apr 1 at 13:23
















2












2








2







The key is to use the "fixed" package option, usepackage[fixed]{fontawesome5}.



documentclass[12pt]{article}

%usepackage{fontspec}
usepackage[fixed]{fontawesome5}

begin{document}
section{MWE}
The faIcon{desktop} and faIcon{mobile} icons should be the same width.

rmfamily:\
faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}\
faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}

ttfamily
ttfamily:\
faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}\
faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}
end{document}


enter image description here



Note that the fixed widths can vary if, for example, you are in a different font family such as ttfamily. They will still be fixed width, just a different fixed width from rmfamily.






share|improve this answer















The key is to use the "fixed" package option, usepackage[fixed]{fontawesome5}.



documentclass[12pt]{article}

%usepackage{fontspec}
usepackage[fixed]{fontawesome5}

begin{document}
section{MWE}
The faIcon{desktop} and faIcon{mobile} icons should be the same width.

rmfamily:\
faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}\
faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}

ttfamily
ttfamily:\
faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}faIcon{desktop}\
faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}faIcon{mobile}
end{document}


enter image description here



Note that the fixed widths can vary if, for example, you are in a different font family such as ttfamily. They will still be fixed width, just a different fixed width from rmfamily.







share|improve this answer














share|improve this answer



share|improve this answer








edited Apr 1 at 13:29

























answered Apr 1 at 13:21









Steven B. SegletesSteven B. Segletes

161k9206416




161k9206416













  • I can't believe I missed that in the package documentation. Thank you!

    – Tomáš Sláma
    Apr 1 at 13:23





















  • I can't believe I missed that in the package documentation. Thank you!

    – Tomáš Sláma
    Apr 1 at 13:23



















I can't believe I missed that in the package documentation. Thank you!

– Tomáš Sláma
Apr 1 at 13:23







I can't believe I missed that in the package documentation. Thank you!

– Tomáš Sláma
Apr 1 at 13:23





Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Can I use Tabulator js library in my java Spring + Thymeleaf project?