Imported Upstream version 1.22.4
[platform/upstream/groff.git] / src / utils / addftinfo / guess.h
1 // -*- C++ -*-
2 /* Copyright (C) 1989-2018 Free Software Foundation, Inc.
3      Written by James Clark (jjc@jclark.com)
4
5 This file is part of groff.
6
7 groff is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11
12 groff is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15 for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program.  If not, see <http://www.gnu.org/licenses/>. */
19
20 struct font_params {
21   int italic;
22   int em;
23   int x_height;
24   int fig_height;
25   int cap_height;
26   int asc_height;
27   int body_height;
28   int comma_depth;
29   int desc_depth;
30   int body_depth;
31 };
32
33 struct char_metric {
34   int width;
35   int type;
36   int height;
37   int depth;
38   int ic;
39   int left_ic;
40   int sk;
41 };
42   
43 void guess(const char *s, const font_params &param, char_metric *metric);