W3C home > Mailing lists > Public > www-amaya@w3.org > July to September 1998

Re: Amaya printing with smaller fonts

From: Vincent QUINT <Vincent.Quint@inrialpes.fr>
Date: Wed, 30 Sep 1998 09:11:31 +0200
Message-Id: <199809300711.JAA23585@lifou.inrialpes.fr>
To: Bertrand.Ibrahim@cui.unige.ch
cc: www-amaya@w3.org
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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:53:19 UTC