XeTeXBold doesn't work with custom font

Information and discussion about XeTeX, an alternative for pdfTeX based on e-Tex
Post Reply
sombrancelha
Posts: 22
Joined: Fri May 18, 2007 6:48 pm

Bold doesn't work with custom font

Post by sombrancelha »

Hello,

I've installed Kristen ITC font and I'm using it on my document.

However, I cannot get bold faces in XeLaTeX. But in other programs I can. With system fonts it works correctly, but for all personal fonts, it doesn't.

This is my preamble:

Code: Select all

\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[brazil]{babel}
\usepackage[vmargin=5.5cm,hmargin={3.5cm, 4.6cm},columnsep=0.75cm]{geometry}
\usepackage{graphicx,color}
\usepackage{fontspec}

\setromanfont{Kristen ITC}
How can I get it working?

Thank you.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Re: Bold doesn't work with custom font

Post by localghost »

It seems that this font does not provide bold faced characters.


Best regards
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
sombrancelha
Posts: 22
Joined: Fri May 18, 2007 6:48 pm

Re: Bold doesn't work with custom font

Post by sombrancelha »

I wrote on OpenOffice.org Writer with this font with bold.
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Bold doesn't work with custom font

Post by localghost »

Unfortunately you don't provide a minimal example for somebody willing to install the font and test it. A second look on your preamble shows some lines that don't work with Xe(La)TeX.

Code: Select all

\usepackage[utf8]{inputenc}
\usepackage{lmodern}
Especially the font package is out of place. Take a look at the xltxtra package and try more settings explained in the fontspec manual.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Bold doesn't work with custom font

Post by frabjous »

I looked at the font. It definitely doesn't have bold characters. Most likely OpenOffice, etc., are doing "fake bold".

You can create fake bolds in XeLaTeX using the method described on p. 13 of the fontspec documentation.

Text {\addfontfeatures{FakeBold=1.5}Fake Bold Text}

change FakeBold=1.5 to a greater or lesser number depending on how dark you want it.
Post Reply