Results 1 to 3 of 3

Thread: Load CL_Font from file

  1. #1
    Lesser Knight
    Join Date
    May 2010

    Default Load CL_Font from file

    Hello, all!

    How i can load font from file (not name)?
    Example: fonts/fontfont.ttf


  2. #2

  3. #3
    ClanLib Developer
    Join Date
    May 2007


    btw, it is much easier and intuitive in ClanLib 3.0

    clan::FontDescription contains

    	/// \brief Sets the typeface name
    	void set_typeface_name(const std::string &name);
    	/// \brief Sets the filename of the font (when required)
    	void set_filename(const std::string &filename);
    But until then, CL_Font_Freetype is your friend. (Or the CL_Font_System::register_font() bizarre hack)

Similar Threads

  1. CL_Font rendering and overall graphics performance optimization
    By Noro in forum Official ClanLib SDK Forums
    Replies: 6
    Last Post: 12-06-2011, 02:08 PM
  2. Memory leak in CL_Font 2.3.2
    By Griz in forum Official ClanLib SDK Forums
    Replies: 8
    Last Post: 10-14-2011, 07:32 AM
  3. Bug in 2.1? CL_Font::get_text_size
    By Nightwind0 in forum Official ClanLib SDK Forums
    Replies: 3
    Last Post: 01-20-2010, 10:14 PM
  4. Novashell won't load
    By Ainiaria in forum Novashell Game Creation System
    Replies: 11
    Last Post: 07-13-2009, 11:10 PM
  5. I need help using CL_Font with a System font on the Mac
    By eoliveri in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 08-07-2007, 01:59 PM



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts