LASi: util.h File Reference

LASi

Functions
util.h File Reference

Convert return-code of Freetype library calls to std::runtime_error. More...

`#include <stdexcept>`
`#include <string>`
`#include <iostream>`
`#include <ft2build.h>`

Go to the source code of this file.

## Functions
std::ostream & | operator<< (std::ostream &, const FT_Library)
std::ostream & | operator<< (std::ostream &, const FT_Face)
std::ostream & | operator<< (std::ostream &, const FT_Glyph)
std::ostream & | operator<< (std::ostream &, const FT_Outline)
void | evalReturnCode (const int errCode, const char *funcName) throw (std::runtime_error)
| Converts a freetype return code into an exception. More...

## Detailed Description

Convert return-code of Freetype library calls to std::runtime_error.

Usage: place every call to Freetype library inside FtEval::eval().

libLASi provides a C++ output stream interface for writing multi-language Postscript documents. Copyright (C) 2003, 2004 by Larry Siden.

See README file in project root directory for copyright and contact info. See COPYING file in project root for terms of re-distribution.

## Function Documentation

## ◆ evalReturnCode()

void evalReturnCode | ( | const int | errCode,
|  | const char * | funcName
| ) |  |
throw | ( | std::runtime_error
| ) |  |
| inline

Converts a freetype return code into an exception.

Referenced by LASi::PostscriptDocument::for_each_glyph_do(), and LASi::PostscriptDocument::write_glyph_routine_to_stream::operator()().

## ◆ operator<<() [1/4]

std::ostream& operator<< | ( | std::ostream & | ,
|  | const FT_Library |
| ) |  |

## ◆ operator<<() [2/4]

std::ostream& operator<< | ( | std::ostream & | ,
|  | const FT_Face |
| ) |  |

## ◆ operator<<() [3/4]

std::ostream& operator<< | ( | std::ostream & | ,
|  | const FT_Glyph |
| ) |  |

## ◆ operator<<() [4/4]

std::ostream& operator<< | ( | std::ostream & | ,
|  | const FT_Outline |
| ) |  |