[XeTeX] Hyperref & height around links with Latin Modern

Freek Dijkstra software at macfreek.nl
Sun Jan 11 14:03:51 CET 2009


Hello all,

I have a hyperref-related question. (please suggest a more appropriate
list if this is off-topic here.)

I recently switched from the Computer Modern to Latin Modern font, and
noticed that borders around links, as created by hyperref are higher
then they were for Computer Modern. This looks bad.

Is there a method to decrease the height of the border around links?

Attached is a screenshot (I have no clue if the lists allows that). If
not, below is a minimal example that shows the difference.

Regards,
Freek Dijkstra


\documentclass{article}

\usepackage{fontspec}
\usepackage[dvipdfmx,colorlinks=false]{hyperref}

\begin{document}


\setmainfont{Latin Modern Roman}
\setsansfont{Latin Modern Sans}
\setmonofont{Latin Modern Mono Light}

\section{Latin Modern}
\label{sec:latin_modern}

This is section~\ref{sec:latin_modern}.

Link: \href{http://www.example.com/}{http://www.example.com/}


\setmainfont{CMU Serif}             % Computer Modern Unicode
\setsansfont{CMU Sans Serif}        % Computer Modern Unicode
\setmonofont{CMU Typewriter Text}   % Computer Modern Unicode

\section{Computer Modern}
\label{sec:computer_modern}

This is section~\ref{sec:computer_modern}.

Link: \href{http://www.example.com/}{http://www.example.com/}

\end{document}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: borderheight.png
Type: image/png
Size: 14871 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20090111/340d66ef/attachment.png 


More information about the XeTeX mailing list