SDL ttf

From WebOS101

Jump to: navigation, search

Contents

Introduction

Palm includes the SDL_ttf library for rendering fonts. SDL_ttf is documented fairly well on the web and it appears to be fully supported.

On-device Fonts

There are several shared fonts included on webOS devices. Shared fonts are stored in /usr/share/fonts. According to Palm[1] the following fonts should always be available:

  • Prelude
  • Prelude Condensed
  • arial (Arial)
  • cour (Courier)
  • times (Times Roman)
  • verdana (Verdana)
  • lucon (Lucidia Console)

It is important to note that webOS has a case-sensitive file system so you must get font names exactly correct or they will fail to load.

Useful links

References

  1. https://developer.palm.com/distribution/viewtopic.php?f=70&t=8670
Personal tools