HyperText Studio Title
HyperText Studio Title Home Button Features Button Download Button Purchase Button Support Button Contact Button Company Button
 

TechNote 10000: Setting default font and font size for a project

Every project can have one or more style sheets.  In order to set a default font and font size, we must have a style sheet in the project.

Creating the Style Sheet

If you do not already have a style sheet in your project, see TechNote 10001 for details on how to create one.

Opening the Style Sheet

In order to setup your default font and font size you must edit the style sheet you have applied to your topics.  See Technote 10003 for details on how to open your style sheet.

Creating a style

We are now going to create a style which will apply to every bit of text in our project.  The way we do this is by creating a style which will customize the three major HTML text containers, paragraphs (p), table cells (td) and list items (li).

  1. In the CSS editor select the Insert|Style menu command.
  2. In the dialog, expand the tag list.
  3. Select the p tag.
  4. Click on the button to show some extend options, which allow us to add styles for multiple tags at one time.
  5. Click the button to add that tag to our list of selectors.
  6. Repeat steps 4-7 with the following tags:
     
  7. Your list of selectors should now look like this:
  8. Click OK.

Setting Style Properties

Now that we have setup our style, we can now setup the properties (i.e: font and font size) to be associated with our style.

  1. Click the button on the toolbar or click with the secondary mouse button on the style and click Properties.
  2. Select Style from the list of available properties, if it is not already selected.
  3. From the list of available attributes, scroll down until you find font-family.  Click on it and type the name of the font you wish to be your default font, e.g: Arial
  4. Then click on font-size and set the font size to 10pt.
  5. Save our style sheet by using the File|Save menu command.
  6. We have now created our font!  If you re-open any pages using this style sheet you will find that your default font will have changed!
 

Copyright © 1991-2011 Olson Software Limited. All rights reserved.