Back to index

Classes | Functions | Variables
compound_font.cpp File Reference
#include "font.hpp"
#include "charmap.hpp"
#include "convert.hpp"

Go to the source code of this file.


struct  compound_font_rep


static tree map_car (tree t)
font compound_font (scheme_tree def)


static string empty_string ("")

Function Documentation

font compound_font ( scheme_tree  def)

Definition at line 170 of file compound_font.cpp.

  string name= tree_to_scheme (def);
  if (font::instances->contains (name))
    return font (name);
  array<font> fn (N(def));
  fn[0]= find_font (def[0][1]);
  if (is_nil (fn[0])) return font ();
  return make (font, name, tm_new<compound_font_rep> (name, def, fn));

Here is the call graph for this function:

Here is the caller graph for this function:

static tree map_car ( tree  t) [static]

Definition at line 21 of file compound_font.cpp.

  int i, n= N(t);
  tree r (TUPLE, n);
  for (i=0; i<n; i++)
    r[i]= t[i][0];
  return r;

Here is the call graph for this function:

Variable Documentation

string empty_string("") [static]