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

Font engine using FreeType, FontConfig and cairographics. More...

#include <fonts.hpp>

Classes

struct  Symbolname
 Glyph symbol name entry. More...
 

Public Member Functions

FcConfig * fc (void)
 
void push_auto_search_font (const std::string &family)
 
int pop_auto_search_font (void)
 
std::string family (void) const
 
cairo_font_slant_t slant (void) const
 
cairo_font_weight_t weight (void) const
 
cairo_font_face_t * font_face (void) const
 
FcPattern * fcpattern (void) const
 
void push_font (FcPattern *pat)
 
void push_font (const std::string &family, cairo_font_slant_t slant, cairo_font_weight_t weight)
 
int pop_font (void)
 
void text_extents (cairo_t *cairo, const std::string &str, cairo_text_extents_t *extents)
 
void draw_text (cairo_t *cairo, const std::string &str, double &x, double &y)
 Draw piece of text at (x,y) More...
 

Static Public Member Functions

static void combine_extents (cairo_text_extents_t *extents1, double x1, double y1, const cairo_text_extents_t *extents2, double x2, double y2)
 Combine extents. More...
 

Static Public Attributes

static const Symbolname symbols []
 Chart of glyph symbol names. More...
 

Detailed Description

Font engine using FreeType, FontConfig and cairographics.

Member Function Documentation

◆ combine_extents()

void FontLib::combine_extents ( cairo_text_extents_t *  extents1,
double  x1,
double  y1,
const cairo_text_extents_t *  extents2,
double  x2,
double  y2 
)
static

Combine extents.

Combine (extents1,x1,y1) and (extents2,x2,y2) to database (extents1,x1,y1). The extents2 is taken to be latter and therefore advance is defined to be from origo of the first data to the advance of the second data.

◆ draw_text()

void FontLib::draw_text ( cairo_t *  cairo,
const std::string &  str,
double &  x,
double &  y 
)

Draw piece of text at (x,y)

The (x,y) are updated according to cursor advance.

Member Data Documentation

◆ symbols

const FontLib::Symbolname FontLib::symbols
static

Chart of glyph symbol names.


The documentation for this class was generated from the following files:


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