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.

I am using XeTeX and love it very much. When I use helatex, I have no problems at all. But I want to try do it «True Way»: plainTex. XeTeX takes all annoyance with unicode from me, but sample like this

\font\foo=bar
\foo
{\bf Привет, мир!}


{Jellios}
\bye

fails, because font have not cyrillic symbols. So, my question is example of font(with tfm file), that have cyrillic symbols.

My system is Arch GNU/Linux.

share|improve this question
2  
You basically have to reproduce the working of \usepackage[utf8]{inputenc} and of \usepackage[T2A]{fontenc}. Not impossible, but quite a project. –  egreg May 12 '12 at 12:17
    
Why do you want to use a font with tfm with xetex? Why don't you use simply a system font with cyrillic symbols? And why do you want to restrict yourself to an old and plain system when newer and better systems like latex or context exist? –  Ulrike Fischer May 12 '12 at 12:49
1  
@Ulrike: the word "restrict" is sooooo out of place in your comment! ;-) –  morbusg May 12 '12 at 15:10
    
@Ulrike: Because I want to combine deep understanding that can be digged in Knuth' book and UTF-8 convinence. –  KAction May 19 '12 at 8:42
add comment

1 Answer

The Plain \bf macro calls \fam6 (change math family) and also \tenbf (the actual font name), which is (by default) the Computer Modern tfm ten point bold font. So you could do (note, you said your example uses tfm, my example uses OpenType font which came with OSX, because you explicitly mentioned XeTeX and Unicode):

\font\tenrm="Baskerville"
\font\tenbf="Baskerville/B"
\rm

{\bf Привет, мир!}

Jellios
\bye
share|improve this answer
    
What does this have to do with the question? –  egreg May 12 '12 at 15:21
    
@egreg: what do you mean? Does my edit clear things up? –  morbusg May 12 '12 at 16:04
    
The question deals with "classical" TeX fonts (with tfm file). –  egreg May 12 '12 at 16:18
    
@egreg: I understand the question differently. –  morbusg May 12 '12 at 17:55
    
XeTeX dont find tfm file for Baskervillie so by analogy I tried use DejaVu Sans Mono, that works perfectly for xelatex. Strangely, I get no cyrillic symbols. –  KAction May 19 '12 at 8:43
show 2 more comments

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.