blob: c7ebc3acb81325eede6eb0cc3de8879554fc18d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
/*******************************************************************
*
* ftxwidth.h
*
* Glyph Widths (and Heights) fast retrieval extension.
*
* Copyright 1996-2001 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used
* modified and distributed under the terms of the FreeType project
* license, LICENSE.TXT. By continuing to use, modify, or distribute
* this file you indicate that you have read the license and
* understand and accept it fully.
*
*
* This extension is used to parse the `glyf' table of a TrueType
* file in order to extract the bounding box of a given range of glyphs.
*
* The bounding box is then used to build font unit widths and heights
* that are returned in two parallel arrays.
*
* This extension is needed by the FreeType/2 OS/2 Font Driver.
*
******************************************************************/
#ifndef FTXWIDTH_H
#define FTXWIDTH_H
#include "freetype.h"
#ifdef __cplusplus
extern "C" {
#endif
/******************************************************************/
/* */
/* Function: TT_Get_Face_Widths */
/* */
/* Description: Returns the widths and/or heights of a given */
/* range of glyphs for a face. */
/* */
/* Input: */
/* face :: face handle */
/* */
/* first_glyph :: first glyph in range */
/* */
/* last_glyph :: last glyph in range */
/* */
/* widths :: address of table receiving the widths */
/* expressed in font units (ushorts). Set */
/* this parameter to NULL if you're not */
/* interested by these values. */
/* */
/* heights :: address of table receiving the heights */
/* expressed in font units (ushorts). Set */
/* this parameter to NULL if you're not */
/* interested by these values */
/* */
/* Returns: */
/* Error code */
/* */
/* */
/******************************************************************/
FT_EXPORT_DEF( TT_Error )
TT_Get_Face_Widths( TT_Face face,
TT_UShort first_glyph,
TT_UShort last_glyph,
TT_UShort* widths,
TT_UShort* heights );
#ifdef __cplusplus
}
#endif
#endif /* FTXWIDTH_H */
/* END */
|