Re: Amaya printing with smaller fonts

Bertrand Ibrahim wrote:

> is it possible to influence the font size(s) used in Amaya for the File/Print
> command, e.g. through CSS rules? Could it be done through a default file
> similar to  or does it need to be done by adding in each
> document a <link> tag such as the following?
> 
>   <link media="print" rel="stylesheet" href="xxx.css" type="text/css">
> 
> The file xxx.css would contain:
> 
>   H1 {font-size: ...}
>   H2 {font-size: ...}

In the current release, Amaya ignores style sheets when printing.  More precisely,
it ignores file $Home/.amaya.css, the STYLE element in the HEAD of the document,
and external style sheets linked to the document by a LINK element.  The only
way to have a CSS rule to be interpreted when printing is to use a STYLE
attribute.

So, to print a document with larger characters, you have to change the body element:

   <body style="font-size: 16pt">

Obviously, if the document contains such tags as <font size="1"> the corresponding
elements will still be too small...

We are considering some improvements in style sheet handling for the next major
release of Amaya.  Solving this problem is clearly part of these improvements.

Vincent.

-------------------------------------------------------
Vincent Quint                       INRIA Rhone-Alpes
W3C/INRIA                           ZIRST
e-mail: Vincent.Quint@w3.org        655 avenue de l'Europe
Tel.: +33 4 76 61 53 62             38330 Montbonnot St Martin
Fax:  +33 4 76 61 52 07             France

Received on Wednesday, 30 September 1998 03:11:34 UTC