Previous Page  Developer's Guide: Tutorials
 How to create text using custom fonts
 5.3 Next Page

  • Make sure DesktopX is in authoring mode. Right click the DesktopX systray icon. If you see "Switch to Authoring mode", then select it.
  • Right click again the DesktopX systray icon and select "New Object".
  • A new object is created and the Properties panel for it is opened.
  • Select the States tab.
  • In the Appearance sub tab select "Text".
  • Enter some text in the underlying text area.

States - Text 

  • Select a custom font, change the color, border, etc.

  • Click Apply. You should see your object update.

Test object

  • Now go in the Summary tab.

Summary tab 

  • Click the "Custom Files" button. It will open the Custom files dialog. This let you specify some files that are not pictures or sound files selected for some object states, but are still needed for the object, in this case a custom font file. This will let DesktopX pack everything needed when you export and distribute your objects on other machines.

Custom files 

  • Click Add. A standard Open dialog appears (it is shown here in Italian).

Apri 

  • If it behaves oddly for the c:/windows/fonts folder, and it doesn't let you double click and select a font, enter the initials of the font, to let you choose the actual file name. Finally click Open.
  • You are done. You can now right click your object and select "Export..." to turn it into a redistributable widget or object.
  • Make sure the font license permits you to redistribute it. In the case of DesktopX, the font WON'T be installed into other machines, but it will just loaded at runtime when the object or widget is loaded. This usually permitted by most font licenses.

Previous Page     Next Page