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

[TSVN] Re: Some observations on TMerge

From: Norbert Unterberg <nepo_at_gmx.net>
Date: 2005-03-15 16:42:12 CET

SteveKing schrieb:

> The size of that linediff bar is calculated according to the font specs.
> Seems the font sizes aren't really correct, i.e. they don't take chars
> into account which go below the actual line...

One way to get the required vertical size for a font is to call
GetTextMetrics(hdc, &tm) and use (tm.tmHeight + tm.tmExternalLeading) as
cell height. This gives enough space for both under- and oversized
characters. You can then use tm.tmDecent as an offset between the
character baseline and the lower border of the diff line, so that no
part of a character is clipped.

Norbert

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Tue Mar 15 16:56:05 2005

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.