Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CFontManagerCairo.cpp File Reference
#include "CFontManagerCairo.hpp"
#include "core/CStringTools.hpp"
#include "math/CGeometry.hpp"
#include <pango/pangocairo.h>
Include dependency graph for CFontManagerCairo.cpp:

Functions

static cairo_t * prvCreateRender (int32_t width, int32_t height, cairo_surface_t **surf, unsigned char **buffer)
 
static void prvGetSize (PangoLayout *layout, double scale, double *width, double *height)
 
static void prvGetCoordCornerLeftDown (PangoLayout *layout, double x, double y, unsigned char justify, double scale, double *xCornerLeftDown, double *yCornerLeftDown, double *widthTextOpt, double *heightTextOpt, double *descent)
 
static void prvGetCoordCornerLeftDownWithDescent (PangoLayout *layout, double x, double y, unsigned char justify, double scale, double *xCornerLeftDown, double *yCornerLeftDown, double *widthTextOpt, double *heightTextOpt)
 
static void prvSetTextToLayout (const std::string &text, double height, double *scale, PangoLayout *layout)
 
static cairo_t * prvCreateLayoutContext ()
 
static void prvSetFont (PangoLayout *layout, const char *nameFont)
 
static void prvSetTextWeightAndStyle (PangoFontDescription *fontDesc, const iv::ui::TextModifier &textModifier)
 

Variables

static const double kPrvScaleDp = 72. / 96.
 
static const uint64_t kPrvNumChannels = 4
 
static const char * kPrvFontNormal = "Ubuntu"
 

Function Documentation

◆ prvCreateLayoutContext()

static cairo_t * prvCreateLayoutContext ( )
static

◆ prvCreateRender()

static cairo_t * prvCreateRender ( int32_t width,
int32_t height,
cairo_surface_t ** surf,
unsigned char ** buffer )
static

◆ prvGetCoordCornerLeftDown()

static void prvGetCoordCornerLeftDown ( PangoLayout * layout,
double x,
double y,
unsigned char justify,
double scale,
double * xCornerLeftDown,
double * yCornerLeftDown,
double * widthTextOpt,
double * heightTextOpt,
double * descent )
static

◆ prvGetCoordCornerLeftDownWithDescent()

static void prvGetCoordCornerLeftDownWithDescent ( PangoLayout * layout,
double x,
double y,
unsigned char justify,
double scale,
double * xCornerLeftDown,
double * yCornerLeftDown,
double * widthTextOpt,
double * heightTextOpt )
static

◆ prvGetSize()

static void prvGetSize ( PangoLayout * layout,
double scale,
double * width,
double * height )
static

◆ prvSetFont()

static void prvSetFont ( PangoLayout * layout,
const char * nameFont )
static

◆ prvSetTextToLayout()

static void prvSetTextToLayout ( const std::string & text,
double height,
double * scale,
PangoLayout * layout )
static

◆ prvSetTextWeightAndStyle()

static void prvSetTextWeightAndStyle ( PangoFontDescription * fontDesc,
const iv::ui::TextModifier & textModifier )
static

Variable Documentation

◆ kPrvFontNormal

const char* kPrvFontNormal = "Ubuntu"
static

◆ kPrvNumChannels

const uint64_t kPrvNumChannels = 4
static

◆ kPrvScaleDp

const double kPrvScaleDp = 72. / 96.
static