- I want to create some symbols in TikZ.
- The symbols should mimic the character set of two very specific fonts.
- The fonts are called Ultima Underworld II and Dungeon Master.
- I attached some pictures that show the look of the fonts.
- I want to use the symbols within the normal text later.
-
1TikZ is for graphics. You are asking about using a particular system font.– percusseMar 25, 2018 at 20:30
-
4Use XeLaTeX or LuaLaTeX, assuming the fonts are publicly available. They allow you to use any system font.– Alan MunnMar 25, 2018 at 20:30
-
4idownvotedbecau.se/noattempt and because you are being rude in the comments.– Henri MenkeMar 25, 2018 at 20:37
-
1If you set up your document font you can also use it with TikZ just like you can use it in a regular text.– percusseMar 25, 2018 at 20:48
-
4Why though? Why recreate font shapes with TikZ and not use the font directly? You could use Inkscape to trace the outline of the characters and export to TikZ code.– Torbjørn T.Mar 25, 2018 at 20:56
1 Answer
- Here's a simple code example.
- Is that what you mean?
- The code is far from optimal but maybe it helps you to ask a more specific question.
- I do not know if
baseline=(char.base)
would be better/more appropriate thanbaseline=0
(see here for example).
\documentclass{article}
\usepackage{tikz}
% Code is loosely based on https://tex.stackexchange.com/questions/295360/
% DRM --> Dungeon Master Runes
% 'em' is a length unit in LaTeX that is relative to the current font.
% See https://tex.stackexchange.com/questions/8260/ for (much) more information
\newcommand\DMRAn{% <-- needed
\tikz[x=0.75em,y=0.75em,baseline=0]
\draw(0,0)--(0,1)--(0.7,0.5)(0,0.5)--(0.7,0.0);% <-- needed
}
\newcommand\DMRBet{% <-- needed
\tikz[x=0.75em,y=0.75em,baseline=0]
\draw(0,0)--(0,1)--(1,0.75)--(0,0.5)--(1,0.25)--(0,0);% <-- needed
}
\begin{document}
ABC \DMRAn\ DEF \DMRBet\
\end{document}
Maybe you can later combine this with Simulating hand-drawn lines to have a handwritten look :).
-
1Exactly OK, Thank you Dr. Manuel Kuehner, It is awesome and impressive quality answer! No need to be stuborn with fonts, just Tikz method is nothing wrong or a crime. I would give all possible stars if it was possible, so much efforts you give to help people on Tex Stackexchg. Thank you for considering my post i.e. using Tikz (despite all Fonts method recommendations of many users (e.g. Xelatex,...)) Thank you a lot for your time and very high quality of answers. Mar 26, 2018 at 16:58
-
-
Hopefully, there will be better answer quality, because you were the single accurate answer. Many thanks ! Mar 29, 2018 at 14:32
-
5@linux432532 you might consider a) accepting the answer and b) dialing down your tone– DG'Mar 30, 2018 at 7:43