Re: [Zim-wiki] Hanging indents

2012-10-16 Thread Jaap Karssenberg
On Tue, Oct 16, 2012 at 6:37 PM, Syv Ritch  wrote:
> On Tue, 16 Oct 2012 11:22:07 +0200
> Jaap Karssenberg  wrote:
>
>> Afraid it is hard coded at 12 pixels at the moment. Probably would
>> need to make it scale with the font size. Although it will never
>> match up exactly, as the exact character width can differ for
>> different characters.
>
> Is there a way of overriding it with a setting in the
> .config/zim/style.conf, so I can adjust it?

Afraid not. Only way to fix is to modify the code in
zim/gui/pageview.py. It is in the "_get_indent_tag" method, line 1572
and following. Change the "12" and "-12" values to something bigger.

Regards,

Jaap

___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] Hanging indents

2012-10-16 Thread Syv Ritch
On Tue, 16 Oct 2012 11:22:07 +0200
Jaap Karssenberg  wrote:

> Afraid it is hard coded at 12 pixels at the moment. Probably would
> need to make it scale with the font size. Although it will never
> match up exactly, as the exact character width can differ for
> different characters.

Is there a way of overriding it with a setting in the
.config/zim/style.conf, so I can adjust it?

-- 
Thanks
http://www.foto-biz.com
The Business Of Being A Photographer -- Lightroom Q&A

___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] Hanging indents

2012-10-16 Thread Jaap Karssenberg
On Sat, Oct 13, 2012 at 9:52 PM, Syv Ritch  wrote:
> I have 0.57 and I'm having problems with hanging indents with both
> the bullets and the numbers. The second line does not line up with
> the first word of the first line.
>
> Preference > No custom font and it works properly. The problem is that
> I'm an "old gizzard" and I need larger font sizes like 15 or 16.  Then
> it doesn't display "properly" anymore.
>
> How do I fix this?

Afraid it is hard coded at 12 pixels at the moment. Probably would
need to make it scale with the font size. Although it will never match
up exactly, as the exact character width can differ for different
characters.

Regards,

Jaap

___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp