Ipelib
Public Member Functions | Static Public Member Functions | List of all members
ipe::Fonts Class Reference

#include <ipefonts.h>

Public Member Functions

 Fonts (const PdfResourceBase *resources)
 
FacegetFace (const PdfDict *d)
 
const PdfResourceBaseresources () const noexcept
 
bool hasType3Font () const noexcept
 

Static Public Member Functions

static cairo_font_face_t * screenFont ()
 
static String freetypeVersion ()
 

Detailed Description

Provides the fonts used to render text.

Constructor & Destructor Documentation

◆ Fonts()

Fonts::Fonts ( const PdfResourceBase resources)

Member Function Documentation

◆ getFace()

Face * Fonts::getFace ( const PdfDict d)

Get a typeface.

Corresponds to a Freetype "face", or a PDF font resource. A Face can be loaded at various sizes (transformations), resulting in individual FaceSize's.

◆ screenFont()

cairo_font_face_t * Fonts::screenFont ( )
static

Return a Cairo font to render to the screen w/o Latex font.

Referenced by ipe::CairoPainter::doDrawText().

◆ freetypeVersion()

String Fonts::freetypeVersion ( )
static

◆ resources()

const PdfResourceBase* ipe::Fonts::resources ( ) const
inlinenoexcept

◆ hasType3Font()

bool Fonts::hasType3Font ( ) const
noexcept

References ipe::Type3.


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