Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

In Emacs I use the 10x20 font because it has a great support for Unicode symbols. I tried to use this font with xelatex using something like

\documentclass[10pt]{book}
\usepackage{fontspec}

\setmonofont{10x20}

\begin{document}
\texttt{Testing the mono font.}
\end{document}

but I got the following error:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: "font-not-found"
!
! The font "10x20" cannot be found.
!
! See the fontspec documentation for further information.
!
! For immediate help type H <return>.
!...............................................

I know I should use the font name with \setmonofont, but the only information I have is that 10x20 is a short name for -Misc-Fixed-Medium-R-Normal--20-200-75-75-C-100-ISO10646-1.

Can I use the 10x20 font with xelatex?

share|improve this question
    
This looks like an X bitmap font, XeTeX does not support bitmap fonts (apart from MetaFont bitmaps). –  Khaled Hosny Dec 6 '12 at 15:55
    
without some sort of conversion, i don't think there's a chance of using the font with xetex. (i did a bit of a search, and all fonts i found, whose name includes "10x20", are x11 bitmap fonts ... which would seem to confirm khaled hosny's hypothesis.) –  wasteofspace Dec 6 '12 at 17:45
    
Thanks. I will see if I can use some sort of conversion for using the font. –  asr Dec 6 '12 at 20:55
    
@AndrésSicard-Ramírez You may try FreeMono that has a wide coverage of Unicode. –  egreg Apr 2 '13 at 10:27

1 Answer 1

The 10x20 font is almost surely a bitmap font that can be used with X11 displays, but not with XeLaTeX or LuaLaTeX that require OpenType or TrueType fonts.

For a monospaced font with wide coverage of Unicode, you can try FreeMono, that's included in TeX Live.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.