File: freetypeharfbuzz.h

package info (click to toggle)
r-cran-freetypeharfbuzz 0.2.6%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 524 kB
  • sloc: ansic: 370; sh: 74; makefile: 61
file content (36 lines) | stat: -rw-r--r-- 840 bytes parent folder | download | duplicates (3)
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
#ifndef FREETYPEHARFBUZZ_H
#define FREETYPEHARFBUZZ_H


struct fthb_font_info {
  double ascent;
  double descent;
  double linegap;
};

struct fthb_string_info {
  double width;
  double height;
  double ascent;
  double descent;
};

extern
int (*fthb_get_font_info)(const char* font_path,
                          double font_size,
                          struct fthb_font_info* metrics_out);

extern
int (*fthb_calc_string_info)(const char* string,
                             const char* font_path,
                             double font_size,
                             struct fthb_string_info* metrics_out);

extern
int (*fthb_calc_string_width)(const char* string,
                              const char* font_path,
                              double font_size,
                              double* width_out);


#endif