[Tex/LaTex] Which encoding supports this symbol ƒ

symbols

I have this encoding in my file:

\usepackage[utf8]{inputenc} %unicode support

but I still get the error

Package inputenc Error: Unicode char \u8... not set up for use with ...

How can you make LaTeX understand the symbol ƒ?

Best Answer

The glyphs Ƒ and ƒ can be used with the T4 font encoding with \m F and \m F. To use them with the UTF8 input encoding, one can use the newunicodechar and its \newunicodechar macro

\newunicodechar{ƒ}{{\fontencoding{T4}\selectfont\m f}}
\newunicodechar{Ƒ}{{\fontencoding{T4}\selectfont\m F}}

Unfortunately, they seem to only exist in Bitmap versions.

Code

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T4, OT1]{fontenc}
\usepackage{newunicodechar}
\newunicodechar{ƒ}{{\fontencoding{T4}\selectfont\m f}}
\newunicodechar{Ƒ}{{\fontencoding{T4}\selectfont\m F}}
\begin{document}
abcdeƒgh ABCDEƑGH
\end{document}

Output

enter image description here