Changes between Version 34 and Version 35 of GraphicsApi


Ignore:
Timestamp:
Aug 21, 2012, 3:00:48 AM (12 years ago)
Author:
charlief
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GraphicsApi

    v34 v35  
    200200== Displaying text ==
    201201
    202 Older versions of the BOINC graphics API library included support for ''texture fonts'' in files of the form ''*.txf''.  These are no longer supported, but we have added support for displaying !TrueType fonts in BOINC graphics applications.
     202Older versions of the BOINC graphics API library included functions for rendering ''texture fonts'' using font files of the form ''*.txf''.  These have been eliminated, and we have instead added support for displaying strings using !TrueType fonts in BOINC graphics applications.
    203203 * Add the files `api/ttfont.cpp` and `api/ttfont.h` to your application (they are not included in any BOINC library.)
    204  * You will need to build and link with the [http://www.freetype.org FreeType2] and [http://sourceforge.net/projects/ftgl/files/FTGL%20Source/ FTGL] libraries.  Depending on how you build the FreeType2 library, FreeType2 may require the libz and libbz2 libraries.
    205  * We have put copies of the free Liberation fonts in the `api/ttf/` directory.  If you wish to use other !TrueType fonts, you will need to adjust the list of font names in `ttfont.cpp`.
     204 * You will need to link with the [http://www.freetype.org FreeType2] and [http://sourceforge.net/projects/ftgl/files/FTGL%20Source/ FTGL] libraries.  Depending on how you build the FreeType2 library, FreeType2 may require the libz and libbz2 libraries.  For Windows, prebuilt libraries are available in the `boinc_depends_win_vs2005` repository.  To build these libraries on the Mac, please see MacBuild.
     205 * We have put copies of the free [https://fedorahosted.org/liberation-fonts Liberation fonts] in the `api/ttf/` directory.  If you wish to use other !TrueType fonts, you will need to adjust the list of font names in `ttfont.cpp`.  (Another source of free fonts is the [http://www.gnu.org/software/freefont GNU Freefont project].)
    206206 * Download the desired !TrueType fonts to the client where they are available to your graphics application.
    207207
    208208For examples, please see the `clientscr/ss_app.cpp` and `samples/exampple_app/uc2_graphics.cpp` in the BOINC SVN trunk.
    209209
    210 If your graphics application currently uses the older ''texture fonts'' , note that the ttf_load_fonts() and txf_render_string() APIs are slightly different from the old txf_load_fonts() and txf_render_string() APIs.  Please see the `ttfont.cpp` and `ttfont.h` files for details.
     210If your graphics application currently uses the older ''texture fonts'', note that the ttf_load_fonts() and txf_render_string() APIs are slightly different from the old txf_load_fonts() and txf_render_string() APIs, which have been eliminated.  Please see the `ttfont.cpp` and `ttfont.h` files for details.