About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

ttflib.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <ctype.h>
#include "pklib.h"
#include <ft2build.h>
#include <FT_FREETYPE_H>
#include <FT_OUTLINE_H>
#include <FT_BBOX_H>
#include "ttfenc.h"
#include "ttflib.h"
#include "errormsg.h"
#include "newobj.h"
#include "ttf2tfm.h"
#include "ftlib.h"
Include dependency graph for ttflib.c:

Go to the source code of this file.


static void SetRasterArea (int quiet)
static void CopyBit (FT_Bitmap *b2, FT_Bitmap *b1)
void TTFopen (char *filename, Font *fnt, int new_dpi, int new_ptsize, Boolean quiet)
static FT_Error LoadTrueTypeChar (Font *fnt, int idx, Boolean hint, Boolean quiet)
Boolean TTFprocess (Font *fnt, long Code, byte **bitmap, int *width, int *height, int *hoff, int *voff, Boolean hinting, Boolean quiet)
encodingTTFget_first_glyphs (Font *fnt, long *array)
void TTFget_subfont (Font *fnt, long *array)
long TTFsearch_PS_name (const char *name)


FT_BBox bbox
FT_Bitmap Bit
unsigned char * Bitp
int ppem

Function Documentation

◆ CopyBit()

static void CopyBit ( FT_Bitmap b2,
FT_Bitmap b1 

Definition at line 77 of file ttflib.c.

References b1, b2, memcpy, p1, p2, and y.

Referenced by TTFprocess().

◆ LoadTrueTypeChar()

◆ SetRasterArea()

static void SetRasterArea ( int  quiet)

◆ TTFget_first_glyphs()

encoding* TTFget_first_glyphs ( Font fnt,
long *  array 

◆ TTFget_subfont()

void TTFget_subfont ( Font fnt,
long *  array 

Definition at line 344 of file ttflib.c.

References face, fnt, FT_Get_Char_Index(), i, j, Num(), and oops().

◆ TTFopen()

void TTFopen ( char *  filename,
Font fnt,
int  new_dpi,
int  new_ptsize,
Boolean  quiet 

Definition at line 125 of file ttflib.c.

References dpi, False, filename, fnt, FTopen(), ppem, printf(), ptsize, and quiet.

◆ TTFprocess()

◆ TTFsearch_PS_name()

long TTFsearch_PS_name ( const char *  name)

Definition at line 371 of file ttflib.c.

References buff, face, FT_Get_Glyph_Name(), i, name, FT_FaceRec_::num_glyphs, and strcmp().

Variable Documentation

◆ bbox

Definition at line 34 of file ttflib.c.

◆ Bit

FT_Bitmap Bit

Definition at line 36 of file ttflib.c.

Referenced by SetRasterArea(), and TTFprocess().

◆ Bitp

unsigned char* Bitp

Definition at line 37 of file ttflib.c.

Referenced by SetRasterArea().

◆ ppem