X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffont.h;h=eb4b71ca2a5d73160aefde574ff9b6f76cd8a6b9;hb=98c966c64594611e469313314abd1e59524adb4a;hp=7e286e48f1502fc2756926a1e69cfe6850fdd507;hpb=6396f9a204bfa7a154729dfaa17dc7abc619f7d0;p=lyx.git diff --git a/src/font.h b/src/font.h index 7e286e48f1..eb4b71ca2a 100644 --- a/src/font.h +++ b/src/font.h @@ -1,9 +1,9 @@ // -*- C++ -*- /* This file is part of - * ====================================================== - * + * ====================================================== + * * LyX, The Document Processor - * + * * Copyright 1995 Matthias Ettrich * Copyright 1995-2001 The LyX Team. * @@ -78,6 +78,15 @@ struct lyxfont { /// static void XSetFont(Display * display, GC gc, LyXFont const & f); + // A couple of more high-level metrics + /// + static + void rectText(string const & str, LyXFont const & font, + int & width, int & ascent, int & descent); + /// + static + void buttonText(string const & str, LyXFont const & font, + int & width, int & ascent, int & descent); }; //} // end of namespace font