Table of Contents

 

Style

The definition Style can be used in the Field definition only. This definition determines the appearance of the text being displayed/printed, by using a corresponding font scheme, i.e., Bold, Italic, Point Size, Font Name, etc. The Style attribute in Field Definition is used to format the appearance of the text appearing within the Field, both in Display and Print mode, provided the Print Style attribute is not used within the current Field.

Syntax

[Style : <Style Name>]

Font     : <Font Name>

Height  : <Font Height in Point Size>

Bold     : <Logical Formula>

Italic     : <Logical Formula>

Example

[Style: TSPL Style]

Height : Grow 25%

Bold   : Yes

Italic : Yes

In this example, the Style definition named TSPL Style is used to control how the text appears within a field. It defines formatting properties such as size, weight, and style to enhance the visual presentation of text. The attribute Height : Grow 25% increases the text size by 25% compared to the default height, while Bold : Yes makes the text appear thicker for emphasis, and Italic : Yes slants the text to give it a stylized look.

➥ Click here to download Style Sample

Attributes

Selecting the right font for your report is just like picking the perfect outfit for an event. It sets the tone for the report. By specifying the supported Font name, you give your text its own unique style, whether sharp and professional or casual and friendly. A great font keeps readers hooked! In Tally, we use Arial to give reports a clean, professional look that’s easy on the eyes.

Syntax

Font: <Font Name>

Where,

<Font name> decides the type of font.

Example

[Style: TSPL Style]

Font: “Arial”

This defines a new style called TSPL Style. It makes the text have “Arial” font wherever this style is applied.

Sometimes, certain text needs to shout, “Hey, look at me!”. See, you just focused on the text. That’s where the Bold attribute comes in. It gives your important info some extra muscle, making it pop out clearly on your reports or screens. Whether it’s headings, key numbers, or anything that needs the spotlight, bold makes it impossible to miss.
Just like in TallyPrime, where every heading and title flexes its boldness to guide you like a friendly neon sign!

Syntax:

Bold: <Logical Formula>

Where,
<Logical Formula> is a formula that returns Yes or No, determining whether the font should be displayed in Bold style.

Example

[Style: TSPL Style]

Bold: Yes

This defines a new style called TSPL Style, it makes the text appear bold where this style is applied.

Choosing the right Height for your text is like adjusting the size of your outfit. It makes sure your text is easy to read without overwhelming the page. By specifying the Height attribute in the style definition, you control how tall your text appears, balancing readability with style.

Syntax

Height: <Measurement Formula>

Where
<Measurement Formula> is a formula that evaluates to a number representing the font size in points

Example

[Style: TSPL Style]

Height: 10

This defines a new style called TSPL Style. It sets the text height to 10 points wherever this style is applied.

Adding the right flair to your text is easy with the Italic attribute. It tilts your font gracefully, helping to highlight quotes, emphasize important points, or give your report a subtle touch of style.

Syntax

Italic: <Logical Formula>

Where
<Logical Formula> is a formula that returns Yes or No, determining whether the font should be displayed in italic style.

Example

[Style: TSPL Style]

Italic: Yes

This defines a new style called TSPL Style. It makes the text be shown in italics where this style is applied.

Is this information useful?
YesNo
TallyHelpwhatsAppbanner
Is this information useful?
YesNo
TARA