// -*- C++ -*- /** * \file font_metrics.h * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * * \author unknown * \author John Levon * * Full author contact details are available in file CREDITS. */ #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 -> * --------------+----------+-------