On Fri, Apr 1, 2011 at 6:42 PM, OG_Hemp <[email protected]> wrote:
> TortoiseHG 2.0.2/Merc 1.8.1
> WinXP SP2
>
> Howdy all,
>
> After having a string of instances where I used "o" instead of zero in
> my commit messages (Yep, previously changed all my font choices to non
> mono-spaced fonts for some reason I don't recall), I decided to fix
> that. However, I noticed something odd.
>
> When I changed my (commit) message font to a mono-spaced font, it didn't
> change as expected on the main workbench screen. Actually, only the size
> changed, but the zero still looked like an "o", as it should have had a
> slash thru it. The thing is, the font works perfectly when typing in a
> commit message (zero has the slash). But when finally commiting and
> dropping back to the main workbench screen, all those zeros I typed
> still look like an "o". Is it me or is something not quite right with
> that behavior.
>
> Shouldn't the font I see when I type my commit message, actually match
> what is displayed in the message box under the '+ changeset: header'?
> Currently, it seems like they use two different font sets. One I can
> change, and the other coming from somewhere else?. Its funny how just
> the size changes of the font choice works, but nothing else font related
> does.

The difference appears to be caused by the widgets involved.  The
commit tool is using a QScintilla widget for its many editing features
while the revision details tab is using a QTextBrowser for its ability
to hold linkable text.  They've both being given the same
"fontcomment" user configurable font.

In the QTextBrowser, if I use the setPlainText() method instead of
setHTML() then the fonts match.  So the difference is coming from the
<pre> markup around the changeset message.

-- 
Steve Borho

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Tortoisehg-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss

Reply via email to