Navigation

Main Page
Download
Support
Installation
Tutorial
Examples
Reference Manual
   Version 1.0.6dev
      Class Index
      File List
   Version 1.0.6
   Version 1.0.5new_solver
   Version 1.0.5dev
   Version 1.0.5b
   Version 1.0.4dev
   Version 1.0.4
Publications


Hosted by Get Ion Beam Simulator at SourceForge.net. Fast, secure and Free Open Source software downloads
fonts.cpp File Reference

Font handling More...

#include "fonts.hpp"
#include <fontconfig/fcfreetype.h>
#include <cairo-ft.h>
#include <iostream>
#include "error.hpp"
#include "symbols.hpp"

Functions

std::string wstring_to_utf8 (const std::wstring &in)
 Convert wide string to utf8. More...
 
int utf8_get_length (unsigned char c)
 Returns length of utf8 character. More...
 
std::string utf8_next_character (std::string::const_iterator it)
 Returns next utf8 character from string pointed to by iterator. More...
 

Variables

FontLib fontlib
 Global instance of class FontLib. More...
 

Detailed Description

Font handling

Function Documentation

◆ utf8_get_length()

int utf8_get_length ( unsigned char  c)

Returns length of utf8 character.

◆ utf8_next_character()

std::string utf8_next_character ( std::string::const_iterator  it)

Returns next utf8 character from string pointed to by iterator.

◆ wstring_to_utf8()

std::string wstring_to_utf8 ( const std::wstring &  in)

Convert wide string to utf8.

Variable Documentation

◆ fontlib

FontLib fontlib

Global instance of class FontLib.


Reference manual for Ion Beam Simulator 1.0.6dev
Generated by Doxygen 1.9.1 on Thu Sep 11 2025 09:37:24.