// -*- C++ -*- /** * \file font_metrics.h * Copyright 1995-2002 the LyX Team * Read the file COPYING * * \author unknown * \author John Levon */ #ifndef FONT_METRICS_H #define FONT_METRICS_H #include "LString.h" class LyXFont; /** * A namespace holding helper functions for determining * the screen dimensions of fonts. * * The geometry is the standard typographical geometry, * as follows : * * --------------+------------------ (right bearing) * <-> (left bearing) * char ascent>___ | * ^ oooo | oooo * origin>____ | oo oo | oo oo * \| oo oo | oo oo * --------------+---ooooo--|--oooo-______| oooo | * <- width -> * --------------+----------+-------