You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Luke Shannon <ls...@futurebrand.com> on 2005/01/18 21:26:58 UTC
Centralizing Fonts
Hello;
I have looked around for examples of this but have not found anything.
Is there a way to define all the attributes (font-family, start-indent, etc)
for fo:block used in the document?
Thanks,
Luke
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Centralizing Fonts
Posted by The Web Maestro <th...@gmail.com>.
:-)
Also remember (I believe) that this is a property which gets inherited,
so that although the templates which get called don't have those
attributes specified within them, they inherit the property through to
all fo:block (etc.) element children. The only ones which don't keep
the attributes are those which are manually overridden.
BTW, the <xsl:attribute-set/> element is included from an external file
referenced by all of my xsl-fo documents:
<!-- Include XSL-FO stylesheet: Global Attributes and Variables -->
<xsl:include href="xml_med7.fo"/>
Web Maestro Clay
On Jan 18, 2005, at 12:42 PM, Luke Shannon wrote:
> Hah hah. Just like that. Thanks!
>
> ----- Original Message -----
> From: "The Web Maestro" <th...@gmail.com>
> To: <fo...@xml.apache.org>
> Sent: Tuesday, January 18, 2005 3:39 PM
> Subject: Re: Centralizing Fonts
>
>> On Jan 18, 2005, at 12:26 PM, Luke Shannon wrote:
>>> Hello;
>>>
>>> I have looked around for examples of this but have not found
>>> anything.
>>>
>>> Is there a way to define all the attributes (font-family,
>>> start-indent, etc)
>>> for fo:block used in the document?
>>>
>>> Thanks,
>>>
>>> Luke
>>
>> You mean like this?
>>
>> :-p
>>
>> <xsl:attribute-set name="attributes_GLOBAL">
>> <!-- background-color for overall EOR page - default:#ffffff (white)
>> -->
>> <xsl:attribute name="background-color">#ffffff</xsl:attribute>
>> <!-- color for text - default:#000000 (black) -->
>> <xsl:attribute name="color">#000000</xsl:attribute>
>> <!-- font-family for text - default:"courier new, courier,
>> monospace" -->
>> <xsl:attribute name="font-family">courier new, courier,
>> monospace</xsl:attribute>
>> <!-- NOTE: Changes to font-family affects FOP rendering of EOR and
>> may require overhaul of template! -->
>> <!-- font-size for text - default:8pt - -->
>> <xsl:attribute name="font-size">8pt</xsl:attribute>
>> <!-- NOTE: Changes to font-size DRASTICALLY affects FOP rendering
>> of EOR and may require COMPLETE overhaul of template! -->
>> </xsl:attribute-set>
>>
>> <fo:page-sequence master-reference="repeating"
>> force-page-count="no-force">
>> <fo:static-content flow-name="xsl-region-before">
>> <fo:block padding="0pt" xsl:use-attribute-sets="attributes_GLOBAL">
>> <xsl:call-template name="tmpHeader"/>
>> </fo:block>
>> </fo:static-content>
>> <fo:static-content flow-name="xsl-region-after">
>> <fo:block xsl:use-attribute-sets="attributes_GLOBAL">
>> <xsl:call-template name="tmpFooter"/>
>> </fo:block>
>> </fo:static-content>
>> <fo:flow flow-name="xsl-region-body">
>> <fo:block xsl:use-attribute-sets="attributes_GLOBAL">
>> <xsl:call-template name="tmpBody"/>
>> <fo:block padding="0pt" font-size="1pt">
>> <fo:marker marker-class-name="table-continued"/>
>> </fo:block>
>> </fo:block>
>> </fo:flow>
>> </fo:page-sequence>
>>
>> Web Maestro Clay
>> --
>> <th...@gmail.com> - <http://homepage.mac.com/webmaestro/>
>> My religion is simple. My religion is kindness.
>> - HH The 14th Dalai Lama of Tibet
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
>> For additional commands, e-mail: fop-user-help@xml.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
>
>
Web Maestro Clay
--
<th...@gmail.com> - <http://homepage.mac.com/webmaestro/>
My religion is simple. My religion is kindness.
- HH The 14th Dalai Lama of Tibet
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Centralizing Fonts
Posted by Luke Shannon <ls...@futurebrand.com>.
Hah hah. Just like that. Thanks!
----- Original Message -----
From: "The Web Maestro" <th...@gmail.com>
To: <fo...@xml.apache.org>
Sent: Tuesday, January 18, 2005 3:39 PM
Subject: Re: Centralizing Fonts
> On Jan 18, 2005, at 12:26 PM, Luke Shannon wrote:
> > Hello;
> >
> > I have looked around for examples of this but have not found anything.
> >
> > Is there a way to define all the attributes (font-family,
> > start-indent, etc)
> > for fo:block used in the document?
> >
> > Thanks,
> >
> > Luke
>
> You mean like this?
>
> :-p
>
> <xsl:attribute-set name="attributes_GLOBAL">
> <!-- background-color for overall EOR page - default:#ffffff (white)
> -->
> <xsl:attribute name="background-color">#ffffff</xsl:attribute>
> <!-- color for text - default:#000000 (black) -->
> <xsl:attribute name="color">#000000</xsl:attribute>
> <!-- font-family for text - default:"courier new, courier,
> monospace" -->
> <xsl:attribute name="font-family">courier new, courier,
> monospace</xsl:attribute>
> <!-- NOTE: Changes to font-family affects FOP rendering of EOR and
> may require overhaul of template! -->
> <!-- font-size for text - default:8pt - -->
> <xsl:attribute name="font-size">8pt</xsl:attribute>
> <!-- NOTE: Changes to font-size DRASTICALLY affects FOP rendering
> of EOR and may require COMPLETE overhaul of template! -->
> </xsl:attribute-set>
>
> <fo:page-sequence master-reference="repeating"
> force-page-count="no-force">
> <fo:static-content flow-name="xsl-region-before">
> <fo:block padding="0pt" xsl:use-attribute-sets="attributes_GLOBAL">
> <xsl:call-template name="tmpHeader"/>
> </fo:block>
> </fo:static-content>
> <fo:static-content flow-name="xsl-region-after">
> <fo:block xsl:use-attribute-sets="attributes_GLOBAL">
> <xsl:call-template name="tmpFooter"/>
> </fo:block>
> </fo:static-content>
> <fo:flow flow-name="xsl-region-body">
> <fo:block xsl:use-attribute-sets="attributes_GLOBAL">
> <xsl:call-template name="tmpBody"/>
> <fo:block padding="0pt" font-size="1pt">
> <fo:marker marker-class-name="table-continued"/>
> </fo:block>
> </fo:block>
> </fo:flow>
> </fo:page-sequence>
>
> Web Maestro Clay
> --
> <th...@gmail.com> - <http://homepage.mac.com/webmaestro/>
> My religion is simple. My religion is kindness.
> - HH The 14th Dalai Lama of Tibet
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Centralizing Fonts
Posted by The Web Maestro <th...@gmail.com>.
On Jan 18, 2005, at 12:26 PM, Luke Shannon wrote:
> Hello;
>
> I have looked around for examples of this but have not found anything.
>
> Is there a way to define all the attributes (font-family,
> start-indent, etc)
> for fo:block used in the document?
>
> Thanks,
>
> Luke
You mean like this?
:-p
<xsl:attribute-set name="attributes_GLOBAL">
<!-- background-color for overall EOR page - default:#ffffff (white)
-->
<xsl:attribute name="background-color">#ffffff</xsl:attribute>
<!-- color for text - default:#000000 (black) -->
<xsl:attribute name="color">#000000</xsl:attribute>
<!-- font-family for text - default:"courier new, courier,
monospace" -->
<xsl:attribute name="font-family">courier new, courier,
monospace</xsl:attribute>
<!-- NOTE: Changes to font-family affects FOP rendering of EOR and
may require overhaul of template! -->
<!-- font-size for text - default:8pt - -->
<xsl:attribute name="font-size">8pt</xsl:attribute>
<!-- NOTE: Changes to font-size DRASTICALLY affects FOP rendering
of EOR and may require COMPLETE overhaul of template! -->
</xsl:attribute-set>
<fo:page-sequence master-reference="repeating"
force-page-count="no-force">
<fo:static-content flow-name="xsl-region-before">
<fo:block padding="0pt" xsl:use-attribute-sets="attributes_GLOBAL">
<xsl:call-template name="tmpHeader"/>
</fo:block>
</fo:static-content>
<fo:static-content flow-name="xsl-region-after">
<fo:block xsl:use-attribute-sets="attributes_GLOBAL">
<xsl:call-template name="tmpFooter"/>
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block xsl:use-attribute-sets="attributes_GLOBAL">
<xsl:call-template name="tmpBody"/>
<fo:block padding="0pt" font-size="1pt">
<fo:marker marker-class-name="table-continued"/>
</fo:block>
</fo:block>
</fo:flow>
</fo:page-sequence>
Web Maestro Clay
--
<th...@gmail.com> - <http://homepage.mac.com/webmaestro/>
My religion is simple. My religion is kindness.
- HH The 14th Dalai Lama of Tibet
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Centralizing Fonts
Posted by Luke Shannon <ls...@futurebrand.com>.
Sorry, replying to my own post.
<fo:flow flow-name="xsl-region-body" font-family="Helvetica"
start-indent="1em" font-size="12pt">
There were a bunch of block in the document had font-family "Arial", which
doesn't exist, so a default font was being displayed making me think that
the above wasn't working.
----- Original Message -----
From: "Luke Shannon" <ls...@futurebrand.com>
To: <fo...@xml.apache.org>
Sent: Tuesday, January 18, 2005 3:26 PM
Subject: Centralizing Fonts
> Hello;
>
> I have looked around for examples of this but have not found anything.
>
> Is there a way to define all the attributes (font-family, start-indent,
etc)
> for fo:block used in the document?
>
> Thanks,
>
> Luke
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org