Skip to content

samcarter/panda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

panda

License GitHub tag CTAN

A package to estimate the blackness of fonts

One challenge when drawing icons or symbols can be to make them blend in with the surrounding text. If their line widths look good with one font, they can stand out like a sore thumb with another font. The panda package provides tools to automatically adjust line widths etc. to fit in with the surrounding font.

This project is licensed under the LaTeX Project Public License v1.3c or later, see https://www.latex-project.org/lppl.txt .

The project repository, including a bug tracker, can be found at https://github.com/samcarter/panda .

Usage CleverPanda

\documentclass[varwidth,border=1pt]{standalone}

\usepackage{CleverPanda}

\newcommand{\bamboo}{%
  \rule{\CleverPanda{}}{\fontcharht\font`I}
}

\begin{document}

normal cmr: \bamboo

\bfseries
bold cmr: \bamboo

\normalfont
\fontfamily{cmbr}\selectfont
normal cmbr: \bamboo

\bfseries
bold cmbr: \bamboo

\end{document}

Usage BusyPanda

\documentclass[varwidth,border=1pt]{standalone}

\usepackage{BusyPanda}

\newcommand{\bamboo}{%
  \rule{\BusyPanda{0.125}\fontcharht\font`I}{\fontcharht\font`I}
}

\begin{document}

normal cmr: \bamboo

\bfseries
bold cmr: \bamboo

\normalfont
\fontfamily{cmbr}\selectfont
normal cmbr: \bamboo

\bfseries
bold cmbr: \bamboo

\end{document}

For more details, please consult the package documentation.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published