It was recently brought to our attention that the licensing is unclear for some 
of the code we have been using to display text strings in our graphics 
(screensaver) applications.  We have made some changes to ensure that our code 
is properly licensed under the Free Software Foundation's GNU Lesser General 
Public License.  

If your project's graphics applications use the BOINC graphics library's 
support for texture fonts (*.txf), you may need to make some changes.

We have removed the files texfont.cpp, texfont.h, txf_util.cpp, txf_util.h, 
texture.cpp, and texture.h from the BOINC graphic library and from the api/ 
directory in our SVN repository.  We have also removed all *.txf fonts.  

In their place, we have updated the api/ttfont.cpp and api/ttfont.h files, and 
added 12 free TrueType fonts in the BOINC SVN api/ttf/ directory.  These fonts 
are in the Liberation font series and are distributed under the SIL Open Font 
License version 1.1.  More information about these fonts can be found at: 
<https://fedorahosted.org/liberation-fonts>.  

The new code can use any TrueType font (by changing the table of font names in 
ttfont.cpp), but we recommend using the Liberation fonts because they are free 
and the licensing is very liberal.

Updating your project is fairly straightforward:
  * Remove all references to the files texfont.cpp,.h, txf_util.cpp,.h, and 
texture.cpp,.h
  * Build and link ttfont.cpp in your project (it is not included in any BOINC 
library.)
  * Replace any call to txf_load_fonts() with a call to ttf_load_fonts().
  * Replace all txf_render_string() calls with ttf_render_string() calls.
  * The ttfont code requires linking with the FreeType2 and FTGL libraries.  
Depending on how 
    you build the FreeType2 library, FreeType2 may require the libz and libbz2 
libraries.
  * Install the appropriate Liberation fonts instead of the old TXF fonts on 
the target systems.

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.  

FTGL library:  <http://sourceforge.net/projects/ftgl/files/FTGL Source/>
FreeType2 library:  <http://www.freetype.org/>

For examples, please see the clientscr/ss_app.cpp and 
samples/exampple_app/uc2_graphics.cpp in the BOINC SVN trunk.

NOTE: we are still updating the BOINC project files for Windows and the Linux 
make files.  It may be a few days before they are done.

_______________________________________________
boinc_dev mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.

Reply via email to