Back to index

texmacs  1.0.7.15
Defines | Functions | Variables
x_font.cpp File Reference
#include "X11/x_window.hpp"
#include "X11/x_font.hpp"
#include "analyze.hpp"
#include "dictionary.hpp"

Go to the source code of this file.

Defines

#define conv(x)   ((SI) (((double) (x))*(fn->unit)))

Functions

void set_default_font (string name)
font get_default_font (bool tt, bool mini, bool bold)
void load_system_font (string family, int size, int dpi, font_metric &fnm, font_glyphs &fng)
font x_font (string family, int size, int dpi)

Variables

bool char_clip = true
static string the_default_font ("")
font the_default_wait_font

Define Documentation

#define conv (   x)    ((SI) (((double) (x))*(fn->unit)))

Definition at line 23 of file x_font.cpp.


Function Documentation

font get_default_font ( bool  tt,
bool  mini,
bool  bold 
)

Definition at line 205 of file x_font.cpp.

                                                 {
  return the_gui->default_font (tt, mini, bold);
}

Here is the caller graph for this function:

void load_system_font ( string  family,
int  size,
int  dpi,
font_metric fnm,
font_glyphs &  fng 
)

Definition at line 296 of file x_font.cpp.

{
  the_gui->load_system_font (family, size, dpi, fnm, fng);
}

Here is the caller graph for this function:

void set_default_font ( string  name)

Definition at line 200 of file x_font.cpp.

                               {
  the_gui->set_default_font (name);
}

Here is the caller graph for this function:

font x_font ( string  family,
int  size,
int  dpi 
)

Definition at line 428 of file x_font.cpp.

                                          {
  string name= "ps:" * family * as_string (size) * "@" * as_string (dpi);
  if (font::instances -> contains (name)) return font (name);
  else return tm_new<x_font_rep> (name, family, size, dpi);
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

bool char_clip = true

Definition at line 21 of file x_font.cpp.

string the_default_font("") [static]

Definition at line 131 of file x_font.cpp.