File: thtexfonts.h

package info (click to toggle)
therion 0.3.10-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 4,840 kB
  • ctags: 5,417
  • sloc: cpp: 46,983; tcl: 17,383; ansic: 9,055; perl: 1,680; makefile: 728; asm: 152; sh: 12
file content (56 lines) | stat: -rw-r--r-- 1,462 bytes parent folder | download
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
/*
 * Copyright (C) 2003 Martin Budaj
 * 
 * $Date: $
 * $RCSfile: $
 * $Revision: $
 *
 * -------------------------------------------------------------------- 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 * --------------------------------------------------------------------
 */
 

#ifndef thtexfonts_h
#define thtexfonts_h

#include <string>
#include <list>

using namespace std;

struct fontrecord {
  int id;
  string rm,it,bf,ss,si;
};

extern list <fontrecord> FONTS;

int get_enc_id(char* enc);
void print_tex_encodings (void);
void print_fonts_setup(void);

void init_encodings();

string utf2texoctal(string s);
string utf2texhex(string s);
string utf2tex (string s, bool b=false);
int tex2uni(string font, int ch);

#ifndef NOTHERION
const char * utf2tex (char * s, bool b = false);
#endif

#endif