On Mon, Sep 27, 2010 at 4:01 PM, nomnex <email address hidden> wrote:
> On Mon, 2010-09-27 at 12:32 +0000, Jaap Karssenberg wrote:
>> I'm sorry but I don't understand the reasoning. The font size in the
>> "print to browser" output does in no way depend on the font used in
>> the zim window. Instead it is controlled by the HTML template.
>
> And I am afraid I don't fully understand. The only way to change the
> font/font size of a zim page I want to print is through font selection
> in the browser preferences.
So you want a toolbar setting to change the font in the _browser_ preferences ?
The problem there is that the browser is a completely different
program from zim. Zim often doesn't even know which browser you are
using (e.g. firefox, Internet Explorer, chrome, Opera). The only thing
zim does is generate a HTML page and asks the operating system to open
that page.
I'm afraid any changes to the browser preferences is way outside of
scope for zim.
> This is maybe the nature of my confusion:
>
>> https://bugs.launchpad.net/zim/+bug/635163:
>> The printtobrowser plugin does not use the preference setting from zim
>> - instead it always uses the webbrowser module. - fix committed.
>
> I though Zim would use the font/font size in the Zim preferences instead
> of the web browser (this is the reason I asked a font selection from the
> toolbar).
>
> Could you explain me the [...]print to browser plugin does not use the
> preference setting from zim[...] What preference is it > the CSS
> template Print.html?
Yes, the only thing that goes from zim to the browser is an HTML page.
The Print.html template is used when creating this page. The template
contains CSS rules for what colors to use, what font, what margins
etc.
On Mon, Sep 27, 2010 at 4:01 PM, nomnex <email address hidden> wrote:
> On Mon, 2010-09-27 at 12:32 +0000, Jaap Karssenberg wrote:
>> I'm sorry but I don't understand the reasoning. The font size in the
>> "print to browser" output does in no way depend on the font used in
>> the zim window. Instead it is controlled by the HTML template.
>
> And I am afraid I don't fully understand. The only way to change the
> font/font size of a zim page I want to print is through font selection
> in the browser preferences.
So you want a toolbar setting to change the font in the _browser_ preferences ?
The problem there is that the browser is a completely different
program from zim. Zim often doesn't even know which browser you are
using (e.g. firefox, Internet Explorer, chrome, Opera). The only thing
zim does is generate a HTML page and asks the operating system to open
that page.
I'm afraid any changes to the browser preferences is way outside of
scope for zim.
> This is maybe the nature of my confusion: /bugs.launchpad .net/zim/ +bug/635163:
>
>> https:/
>> The printtobrowser plugin does not use the preference setting from zim
>> - instead it always uses the webbrowser module. - fix committed.
>
> I though Zim would use the font/font size in the Zim preferences instead
> of the web browser (this is the reason I asked a font selection from the
> toolbar).
>
> Could you explain me the [...]print to browser plugin does not use the
> preference setting from zim[...] What preference is it > the CSS
> template Print.html?
Yes, the only thing that goes from zim to the browser is an HTML page.
The Print.html template is used when creating this page. The template
contains CSS rules for what colors to use, what font, what margins
etc.
Hope this helps,
Jaap