Ipelib: ipe::Face Class Reference

Ipelib

- Main Page
- Related Pages
- Modules
- Classes

- Class List
- Class Hierarchy
- Class Members

Public Member Functions | List of all members
ipe::Face Class Reference
Ipe Cairo interface

`#include <ipefonts.h>`

## Public Member Functions
| Face (const PdfDict *d, const PdfResources *resources) noexcept
| ~Face () noexcept
bool | matches (const PdfDict *d) const noexcept
FontType | type () const noexcept
int | width (int ch) const noexcept
int | glyphIndex (int ch) noexcept
cairo_font_face_t * | cairoFont () noexcept

## Detailed Description

A typeface (aka font), actually loaded (from a font file or PDF file).

## Constructor & Destructor Documentation

Face::Face | ( | const PdfDict * | d,
|  | const PdfResources * | resources
| ) |  |
| noexcept

References ipe::PdfObj::array(), ipe::CIDType0, ipe::CIDType2, ipe::Buffer::data(), ipe::PdfObj::dict(), ipe::PdfObj::name(), ipe::PdfArray::obj(), ipe::PdfObj::ref(), ipe::Buffer::size(), ipe::Truetype, ipe::Type1, ipe::Unsupported, ipe::PdfName::value(), ipe::PdfRef::value(), and ipe::String::z().

Face::~Face | ( |  | ) |
| noexcept

## Member Function Documentation

bool ipe::Face::matches | ( | const PdfDict * | d | ) | const
| inlinenoexcept

FontType ipe::Face::type | ( |  | ) | const
| inlinenoexcept

int Face::width | ( | int | ch | ) | const
| noexcept

int Face::glyphIndex | ( | int | ch | ) |
| noexcept

References ipe::PdfObj::array(), ipe::CIDType0, ipe::CIDType2, ipe::PdfArray::count(), ipe::Buffer::data(), ipe::PdfObj::dict(), ipe::PdfDict::inflate(), ipe::PdfObj::name(), ipe::PdfObj::number(), ipe::PdfArray::obj(), ipe::Buffer::size(), ipe::PdfDict::stream(), ipe::Truetype, ipe::Type1, ipe::PdfNumber::value(), and ipe::PdfName::value().

cairo_font_face_t* ipe::Face::cairoFont | ( |  | ) |
| inlinenoexcept

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

- ipefonts.h
- ipefonts.cpp