Skip to content

Tag Definition: setFontSize

Generated by rlextra version 4.3.0a1

Attributes

Name

Required?

Default_Value

Values

leading

implied

None

size

implied

None

Can contain
EMPTY

Purpose

Set the font size and leading used by text within pageGraphics until it is redefined.

Example usage

<template title="myPage" lang="en-GB" pageSize="(595, 842)" leftMargin="72" showBoundary="0">
    <pageTemplate id="body">
        <pageGraphics>
            <setFontSize size="20"/>
            <drawRightString x="518" y="808">Example text</drawRightString>
        </pageGraphics>
        <frame id="general" x1="30" y1="30" width="535" height="782"/>
    </pageTemplate>
</template>

Note: Only relevant sections are used in this snippet. Some tags were not included. See some of our samples for further insight of how you may go about setting up a full document using rml.

Example of nesting path from the parent tags to the current tag

<document> ➔ <template> ➔ <pageTemplate> ➔ <pageGraphics> ➔ <setFontSize>