Fonts in Flint

Overview

In Flint, fonts can either be created using anti-aliasing of pre-installed system fonts or can be imported from the set of images under resource folder.

Anti-Aliased font type

  • Font Name: Users can select the fonts available under the font name list. Eg. Alef, Calibri, Times New Roman, etc.Ensure you have the license to use this font.Users can install a new font if the font of user’s choice is not available,

    Note: Select ‘Install for all Users’ Option to add new fonts.

  • Font Size: To set the approximate height of the font.

    • Fit Height: Users have the option to manually adjust the font height if the pixel size is not known.

    • Default Size: Users can choose this option to set the font size in pixels.

  • Font Style: Used to make the font - Italic or bold.

  • Minimum width: Users can set the smallest width to be provided for each character, irrespective of its actual width.

  • Character Set: choose the type of characters to be exported. It can be alphanumeric, numeric and custom.

    • Alphanumeric – Most of all the characters

    • Numeric – Only numeric characters

    • Custom – User Specified characters only. For example, for an auto-transmission vehicle cluster only the characters PRNDL can be exported. In the preview section, we can view the changes that we have made to fonts. We can set the character values along with seeing their ASCII values.

    • Unicode file - Flint supports multilingual fonts, which can be achieved by choosing Unicode files in a character set.

    Sparklet Font File - Alphanumeric

    Sparklet Font File - Alphanumeric


Sparklet Font File - Numeric

Sparklet Font File - Numeric


Sparklet Font File - Custom

Sparklet Font File - Custom

Installing image-based fonts

Sometimes, applications may demand using shaded or colored fonts, that are created with image processing tools. Flint supports using these image-based fonts, by selecting Font Type as ‘From Images’.

Importing font images

  • To import the font images, we need to simply copy and paste the images into images folder under the Resources folder.

  • Now click on Add. Set the character value and select the desired font image that we have imported, then click OK. We can view the added font images in the preview section.

    Imaged based Font File

    Imaged based Font File


Image Font in textbox

Image Font in textbox

Grouped Fonts

In Flint, multiple font types can be used in a single textbox by choosing the Font grouped option.

Variable Size Fonts:

Let’s create a font file, change the font type to Font Grouped and set the height value.

Font File with Font Grouped type

Font File with Font Grouped type

Now add the font files which are to be grouped by clicking on the Add button.

Grouped Font Files

Grouped Font Files

We have two font files added here now with different styles and sizes. The first font file (trip_font) is a numeric set, while the second (cluster_font) is alphanumeric.

Font Files list in Grouped Font

Font Files list in Grouped Font

Now, let’s drag and drop the labels widget into the design view, map the font grouped file to the widget. By Simulating the project, we can see the variable size fonts in a same textbox as shown below

Variable Size Fonts

Variable Size Fonts