# [XeTeX] FakeBold vs TikZ

Herbert Schulz herbs at wideopenwest.com
Mon Jun 16 13:34:30 CEST 2014

On Jun 15, 2014, at 5:03 PM, Herbert Schulz <herbs at wideopenwest.com> wrote:

>
> On Jun 15, 2014, at 3:16 PM, Marcin Woliński <wolinski at mimuw.edu.pl> wrote:
>
>> Dear XeTeX Gurus,
>>
>> Please shed some light on the following crazy example (there is
>> definitely a bug here but I have no idea which level is to blame).  This
>> is a minimal XeLaTeX example:
>>
>> ---------------------------------------------------------------------------------------------------------
>> \documentclass{article}
>> \usepackage{fontspec}
>> \usepackage{tikz}
>>
>>
>> \setmainfont{Latin Modern Roman}
>>
>> \begin{document}
>>
>> \begin{tikzpicture}
>> \draw (-1,-1) rectangle (3,3);
>> \draw (0,0) circle (.2);
>>
>> % try commenting out the following line:
>> \node at (1,2) {\fb test1};
>> % try commenting out the following line:
>> \node at (1,1)  {test2};
>> \end{tikzpicture}
>>
>> \vspace{2cm}
>> \newsavebox{\testbox}
>> \sbox{\testbox}{\fb test3}
>>
>> \begin{tikzpicture}
>> \draw (-1,-1) rectangle (3,3);
>> \draw (0,0) circle (.2);
>>
>> % try commenting out the following line:
>> \node at (1,2) {\usebox{\testbox}};
>> % try commenting out the following line:
>> \node at (1,1)  {test2};
>> \end{tikzpicture}
>>
>> \end{document}
>> ---------------------------------------------------------------------------------------------------------
>>
>> The rectangle and the circle are present only to show the coordinates.
>> In particular, the circle shows where the origin of the coordinate
>> system is located.
>>
>> Now we have two nodes, text in one of them has FakeBold applied.  Their
>> position is not really important.
>>
>> In the PDF I get from running XeLaTeX on this file a black dot shows up
>> near the center of the circle (I’ve tried this with XeTeX from Ubuntu
>> 12.04 (TeXlive 2009 with some updates?) and 14.04 (TeXlive 2013)).
>>
>> The dot disappears when FakeBold is not used or if any of the two nodes
>> is removed (also the second one, not containing bold!).  The amount of
>> FakeBold seems not to be important, provided it is non-zero.
>>
>> In the second tikzpicture the FakeBold text is typeset outside of the
>> picture, put in a box, and copied into the node.  Guess what: the black
>> dot shows up again.
>>
>>
>> Any insight into this problem would be really appreciated.  Obviously, I
>> have spotted this in a real life situation.  I handle the problem by
>> changing coordinates within the pictures in such a way that the origin
>> falls off the page but that is a bit silly thing to do.
>>
>>
>> With best
>> Marcin Woliński
>
> Howdy,
>
> I'm using TeX Live 2014 (from the pretest) on a Mac and don't see that black dot (unless it's awfully small). Could it be something that has to do with your PDF Viewer?
>
> Good Luck,
>
> Herb Schulz
> (herbs at wideopenwest dot com)

Howdy,

Just compiled the document under TeX Live 2013 (all updates till the freeze) and still no dot. Besides the Apple PDF framework (using TeXShop and Preview) I also viewed in Adobe Reader and no do in any case shows up.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)