You are not logged in.

#1 2010-04-23 11:57:06

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

XeTeX, (system) fonts, different languages and sizes [SOLVED]

Hi,

There's a LaTeX document like this, in Russian:

%%%%%%%%%%%%% Common preamble %%%%%%%%%%%%
\documentclass[10pt,a4paper,oneside,russian]{scrbook}
\usepackage{ifxetex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\ifxetex

\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage{polyglossia}
\setromanfont[Mapping=tex-text]{Liberation Serif}
\setdefaultlanguage{russian}

\else % not XeTeX

\usepackage{type1ec}
\usepackage[T1]{fontenc}
\usepackage[utf8x]{inputenc}
\usepackage[english,russianb]{babel}

\fi % not XeTeX

%%%%%%%%%%%%% Common preamble %%%%%%%%%%%%

\usepackage{indentfirst}
\frenchspacing
\clubpenalty=10000
\widowpenalty=10000

\usepackage{fancyhdr}
\pagestyle{fancy}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}

\title{Запретный храм (The Forbidden Temple)}
\author{Патрик Вудхед}
\date{~}
\maketitle

...

Using Kile/LaTeX/XeLaTeX, it's convenient. I've got one particular problem with the XeTeX part: while title is bigger by default, I can't see the Russian text. Just the (The Forbidden Temple) part, a bit misplaced to the right. Is it because Liberation Serif can't supply the required Cyrillic size? Unfortunately, I don't know much about fonts; I can be missing something obvious. So be patient with me, please smile

(1) The regular (10pt) Russian (pdf) text is OK (gorgeous, in fact); Liberation font isn't a bitmap font, so if I got one size Cyrillic, there must be any size Cyrillic. Is it really so?

(2) If there's indeed a font-specific catch with character sets/sizes, how can I examine a system font? A (GUI) utility, perhaps? System Settings->Font Installer doesn't show much.

Last edited by Llama (2010-04-23 16:25:13)

Offline

#2 2010-04-23 16:23:37

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: XeTeX, (system) fonts, different languages and sizes [SOLVED]

It turned out that the title isn't just bigger: it's Sans Serif big_smile .

\setromanfont[Mapping=tex-text]{Liberation Serif}
\setsansfont[Mapping=tex-text]{Liberation Sans}  % Without this Cyrillic Sans Serif text won't show.
\setmonofont[Mapping=tex-text]{Nimbus Mono L}

In the process I've discovered a real gem: Fontmatrix. I wonder what keeps an application so heavily voted in AUR...

Offline

#3 2010-06-10 07:16:51

bugz
Member
From: Moscow, Russia
Registered: 2010-06-09
Posts: 1

Re: XeTeX, (system) fonts, different languages and sizes [SOLVED]

Hi Llama,

Thanks a lot for your contribution. I have started to work with XeLaTex recently and didn't know how to solve that problem. Now it's clear.

Regarding the fonts you are using both TrueType (Liberation) and Type 1 (Nimbus Mono) in your example. There is the comparision between these font types, but, in general you are right - both are scalable.

http://www.truetype-typography.com/ttandt1.htm

Last edited by bugz (2010-06-10 07:25:26)

Offline

Board footer

Powered by FluxBB