Back to index

texmacs  1.0.7.15
italic_correct.hpp
Go to the documentation of this file.
00001 
00002 /******************************************************************************
00003 * MODULE     : italic_correct.h
00004 * COPYRIGHT  : (C) 1999  Joris van der Hoeven
00005 *******************************************************************************
00006 * This software falls under the GNU general public license version 3 or later.
00007 * It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
00008 * in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
00009 ******************************************************************************/
00010 
00011 #ifndef ITALIC_CORRECT_H
00012 #define ITALIC_CORRECT_H
00013 #include "boxes.hpp"
00014 
00015 inline void
00016 italic_correct (box b) {
00017   b->x1 -= b->left_correction ();
00018   b->x2 += b->right_correction ();
00019 }
00020 
00021 inline void
00022 italic_restore (box b) {
00023   b->x1 += b->left_correction ();
00024   b->x2 -= b->right_correction ();
00025 }
00026 
00027 #endif // defined ITALIC_CORRECT_H