File: x_font_cache.h

package info (click to toggle)
mlterm 3.3.8-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 21,204 kB
  • ctags: 9,659
  • sloc: ansic: 125,933; sh: 9,668; java: 2,310; makefile: 1,783; perl: 1,603; cpp: 1,101; xml: 42; sed: 16
file content (67 lines) | stat: -rw-r--r-- 1,272 bytes parent folder | download | duplicates (2)
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
/*
 *	$Id$
 */

#ifndef  __X_FONT_CACHE_H__
#define  __X_FONT_CACHE_H__


#include  "x.h"

#include  <kiklib/kik_map.h>
#include  <kiklib/kik_types.h>
#include  <mkf/mkf_charset.h>

#include  "x_font_config.h"


KIK_MAP_TYPEDEF( x_font , ml_font_t , x_font_t *) ;

typedef struct  x_font_cache
{
	/*
	 * Public(readonly)
	 */
	Display *  display ;
	u_int  font_size ;
	mkf_charset_t  usascii_font_cs ;
	x_font_config_t *  font_config ;
	int8_t  use_multi_col_char ;
	u_int8_t  letter_space ;

	x_font_t *  usascii_font ;

	/*
	 * Private
	 */
	KIK_MAP( x_font)  xfont_table ;
	struct
	{
		ml_font_t  font ;
		x_font_t *  xfont ;
		
	} prev_cache ;
	
	u_int  ref_count ;
	
} x_font_cache_t ;


void  x_set_use_leftward_double_drawing( int  use) ;

x_font_cache_t *  x_acquire_font_cache( Display *  display , u_int  font_size ,
	mkf_charset_t  usascii_font_cs , x_font_config_t *  font_config ,
	int  use_multi_col_char , u_int  letter_space) ;

int  x_release_font_cache( x_font_cache_t *  font_cache) ;

int  x_font_cache_unload( x_font_cache_t *  font_cache) ;

int  x_font_cache_unload_all(void) ;

x_font_t *  x_font_cache_get_xfont( x_font_cache_t *  font_cache , ml_font_t  font) ;

char *  x_get_font_name_list_for_fontset( x_font_cache_t *  font_cache) ;


#endif