Suppose I need some crazy custom symbol for personal use.
when I write
\foobar, LaTeX should show
How do I achieve this?
Update: I was writing Klingon writing system for fun. Thank you very much you all. Looks like this now
Simplest way would be to save it as a pdf (or eps if you're using latex) and then define
As TH mentioned, you can create a graphic in an external program and include it as a picture. Preferably you would use a vector drawing software such as adobe illustrator or the (free) software inkscape. This way scaling the image will not change the quality (don't use raster graphics such as jpg).
Of course you can also use a code based approach e.g. with the tikz or pstricks package
Yet another way of including custom symbols is by composing new ones through superimposing glyphs, which is demonstrated in the symbols-a4 manual on page 103.
Here's an example:
As Martin Scharrer points out, the use of ex or em as a unit for kerning respects the font size. You can also use (as I did in the first revision of this example) points for absolute positioning.