[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Font in log dialog changes sometimes

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Sun, 10 Nov 2013 12:12:31 +0100

On 09.11.2013 21:51, Sven Strickroth wrote:
> Use a commit message which includes some special chars (suppose unicode) like
>
> some thing "D:\test\國立1\кккк" more
>
> and commit. Then view log. You see that "more" has a different font (not monospace any more).

That's by design.
What you see is known as "font linking" which happens automatically with
the rich edit control version 2 and higher (the one used to show the log
messages in the log dialog).
http://msdn.microsoft.com/en-us/library/windows/desktop/bb787873%28v=vs.85%29.aspx

Now, about font linking:
Usually a font does not cover all possible unicode glyphs but only some
of them. If a font does not have the glyph you want to draw, an ugly box
is drawn instead.
Font linking prevents those ugly boxes by using another font instead
which has that glyph. Which font is chosen is dependent on your system
and what fonts you have installed.
After a 'better' font has been chosen to draw that glyph, the new font
is used until that font does not have a glyph to draw.

You can usually avoid this situation by installing the "support for
asian languages" in the windows region settings. That will install
better fonts so that the chosen font actually has those glyphs and font
linking isn't necessary anymore.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest interface to (Sub)version control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=3068183
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2013-11-10 12:12:36 CET

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.