// -*- C++ -*- /** * \file FontMetrics.h * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * * \author unknown * \author John Levon * \author Abdelrazak Younes * * Full author contact details are available in file CREDITS. */ #ifndef FONT_METRICS_H #define FONT_METRICS_H #include "support/docstring.h" /** * A class 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 -> * --------------+----------+-------