[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#678082: Bug#678079: Minimal example available



On Thu, Jun 21, 2012 at 12:19 AM, Juhapekka Tolvanen <juhtolv@iki.fi> wrote:
>
> I hope this is minimal enough:
>
> http://iki.fi/juhtolv/tmp/bugreports/LaTeX/02/minimal/

Definitely not. Here is an example that shows that KOMA-Script font
commands and fontspec do work together nicely:

\documentclass{scrartcl}
\usepackage{xltxtra}

\newfontface\mytitlefont{M+ 1p black}
\newfontface\mysubtitlefont{M+ 1p heavy}

\newfontface\mysectionfont{M+ 1p black}
\newfontface\mysubsectionfont{M+ 1p heavy}
\newfontface\mysubsubsectionfont{M+ 1p bold}
\newfontface\myparagraphfont{M+ 1p medium}
\newfontface\mysubparagraphfont{M+ 1p regular}

\addtokomafont{title}{\mytitlefont}
\addtokomafont{subtitle}{\mysubtitlefont}
\addtokomafont{section}{\mysectionfont}
\addtokomafont{subsection}{\mysubsectionfont}
\addtokomafont{subsubsection}{\mysubsubsectionfont}
\addtokomafont{paragraph}{\myparagraphfont}
\addtokomafont{subparagraph}{\mysubparagraphfont}

\title{foo}
\begin{document}
\maketitle

\section{foo}
\subsection{foo}
\subsubsection{foo}
\paragraph{foo}
\subparagraph{foo}
\end{document}

$ pdffonts minimal.pdf
name                                 type              emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
OKLGFU+mplus-1p-black                CID TrueType      yes yes yes      5  0
PTITLR+LMRoman12-Regular-Identity-H  CID Type 0C       yes yes yes      7  0
HWPTIY+mplus-1p-heavy                CID TrueType      yes yes yes      9  0
BBCGQL+mplus-1p-bold                 CID TrueType      yes yes yes     11  0
OEXCMC+mplus-1p-medium               CID TrueType      yes yes yes     13  0
YBXGWJ+mplus-1p-regular              CID TrueType      yes yes yes     15  0
XAVKAS+LMRoman10-Regular-Identity-H  CID Type 0C       yes yes yes     17  0


I am not sure which of the other things you are doing is causing your problems.

cheerio
ralf



Reply to: