Graphics, Figures & TablestikZ | Change Font, Font Size and Color

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
EigenGoofy
Posts: 42
Joined: Fri Jul 22, 2011 12:26 am

tikZ | Change Font, Font Size and Color

Post by EigenGoofy »

Hi, everyone!

I wanna change to the font called "Augie", and I usually use command \fontfamily{augie}\selectfont which does not work for the following case, and I have no idea to change the color of the text, and font size as well.

Code: Select all

\documentclass[landscape]{article}
%\usepackage{babel}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage[absolute,overlay]{textpos}
\usepackage{listings}
\usepackage{xcolor}

\usepackage{tikz}
\usepgfmodule{decorations}
\usetikzlibrary{patterns}
\usetikzlibrary{decorations.shapes}
\usetikzlibrary{shapes.geometric}
\usetikzlibrary{decorations.text}

\begin{document}
\DeclareFixedFont{\pb}{T1}{pbk}{b}{n}{5cm}

\mbox{}
\begin{textblock*}{200mm}[0.2,0.5](67mm,33mm)

\catcode`\|12
\begin{tikzpicture}
%\draw [help lines] (4,4)grid (0,2);
\fill [draw=none,fill=none,
postaction={decorate,decoration={raise=8pt,text along path,
text=around and around and around and around we go we go we go we go we go we go we go we go we go we go we go}}]
(0,1) arc (180:-180:3.5cm and 2.4cm);
\end{tikzpicture}

\end{textblock*}
\end{document}
Thank you!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

EigenGoofy
Posts: 42
Joined: Fri Jul 22, 2011 12:26 am

tikZ | Change Font, Font Size and Color

Post by EigenGoofy »

Based on the code above, modify the middle part by:

Code: Select all

\catcode`\|12
\begin{tikzpicture}
\fontfamily{augie}{\fontsize{15}{15}\selectfont
\fill [draw=none,fill=none,
postaction={decorate,decoration={raise=8pt,text along path,
text={|\color{blue}|around and around and around|| |\color{green}|and around|| we go we go we go we go we go we go we go we go we go we go we go}}}]
(0,1) arc (180:-180:3.75cm and 2.15cm);
}
\end{tikzpicture}
Post Reply