Zim

Toolbar addition Font-Font size setting - Wishlist

Bug #646523 reported by nomnex
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
Invalid
Undecided
Unassigned

Bug Description

this is an addition to bug https://bugs.launchpad.net/zim/+bug/635163

I use a larger font / font-size for onscreen display (e.g. DejaVu Sans 14pt)

I print at a smaller point with a better font for paper output (e.g. Liberation Sans 12 pt)

A toolbar addition to quickly select a different font/font-size for printing output, before to revert to one's default on-screen setting would be welcome.

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote : Re: [Bug 646523] [NEW] Toolbar addition Font-Font size setting - Wishlist

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.

Sounds like a "Won't Fix" to me.

Revision history for this message
nomnex (nomnex) 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.

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?

Thank you.

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

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.

Hope this helps,

Jaap

Revision history for this message
nomnex (nomnex) wrote :

On Mon, 2010-09-27 at 16:29 +0000, Jaap Karssenberg wrote:
> So you want a toolbar setting to change the font in the _browser_
> preferences ?

That's not quite that.

> > 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.

That's clear now. I mistakenly interpreted this bug report as a
configuration change in the way Zim would handle the font/font size
setting before printing (browser independent).

Then, bug https://bugs.launchpad.net/zim/+bug/206168 address my issue,
and you have already answered. Sorry for the misunderstanding.

Changed in zim:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.