如何使输出的 PDF 文件中的字体看起来比这更粗?

如何使输出的 PDF 文件中的字体看起来比这更粗?
\documentclass[a4paper,12pt,numbers=noenddot]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage{lmodern}

\begin{document}
Wind energy provides an indirect form of solar energy. It is a proven technology which helps in meeting the demands in electricity in an efficient way. Offshore



\end{document}

在此处输入图片描述

答案1

在此处输入图片描述

抱歉,我的代码太乱了,我只是快速地输入了这些,但操作方法如下:

% !TEX TS-program = xelatex
\documentclass{article}

\usepackage{lmodern}
\usepackage{fontspec}

\newfontfamily{\garamond}{EB Garamond}
\newfontfamily{\libertine}{Linux Libertine O}
\newfontfamily{\fancycap}{EB Garamond Initials}

\usepackage{lettrine}

\pagestyle{empty}
\setlength\parindent{0pt}

\begin{document}
    \begin{minipage}{3in}
        \resizebox{3in}{!}{%
            \garamond A Few Quick Font Options:}
        \resizebox{3in}{!}{%
            \textsl{(Remember not to forget} 
            \textsc{Small Caps} \& 
            \textbf{Bold} 
            \emph{\garamond\& 
            \normalfont \textit{italics}}}
        \resizebox{3in}{!}{%
            \garamond and 
            {\garamond \small Optical Sizes \&} 
            \normalfont numbers oldstyle 
            \garamond 123456 and lining 
            \garamond \addfontfeatures{Numbers={Lining}} 123456)}
        \vspace*{-14pt}\\\resizebox{3in}{!}{%
            \garamond \tiny —The above paragraph accomplished using 
            \texttt{\textbackslash usepackage\{lmodern\}} \& 
            \texttt{\textbackslash usepackage\{fontspec\}} for 
            \textsc{EB Garamond}—}\par
        \vspace*{.125\baselineskip}\ \\
        \raisebox{6ex}{\rule\linewidth{.4pt}}
        \vspace*{-4\baselineskip}\ \\\par
        \scriptsize\libertine \lettrine[lines=3,loversize=-.3,lraise=.25]
        {\fancycap F}{onts} can be included using \texttt{\textbackslash 
        usepackage\{fontname\}} as shown on \LaTeX font lists. There I 
        would recommend \texttt{libertine} as a replacement for \texttt{%
        lmodern} if you want something slightly heavier. However, \texttt{%
        \textbackslash fontspec} is where the fun really starts, so check 
        that out along with fonts like \textsc{EB Garamond} that have 
        features required for good typography. \medskip\par\ \hfill\tiny 
        This paragraph set in Linux Libertine, with EB Garamond Lettrine.
    \end{minipage}
\end{document}

以下是可以在纯 LaTeX 中使用的字体列表:http://www.tug.dk/字体目录/

对于其他内容,请使用fontspecXeLaTeX 或 LuaTeX。另请注意,这会将 utf8 输入设为默认,因此可以输入破折号、西里尔文、希腊文和简体中文等内容。

所以... TL;DR:尝试交换\usepackage{lmodern}\usepackage{libertine}看看您的想法。使用 EB Garamond 的最佳方式是\setmainfont{EB Garamond}。请注意,和fontspec需要包。\newfontfamily\setmainfont

相关内容