// Copyright (C) 2000-2007, Luca Padovani . // // This file is part of GtkMathView, a flexible, high-quality rendering // engine for MathML documents. // // GtkMathView is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published // by the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // GtkMathView is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see . #ifndef __Gtk_AdobeShaper_hh__ #define __Gtk_AdobeShaper_hh__ #include "Shaper.hh" class Gtk_AdobeShaper : public Shaper { protected: Gtk_AdobeShaper(void); virtual ~Gtk_AdobeShaper(); public: enum { N_FONTS = 10 }; static SmartPtr create(void); void setFontManager(const SmartPtr&); #if HAVE_XFT void setFontManager(const SmartPtr&); #endif // HAVE_XFT virtual void registerShaper(const SmartPtr&, unsigned); virtual void unregisterShaper(const SmartPtr&, unsigned); virtual void shape(class ShapingContext&) const; protected: AreaRef getGlyphArea(const SmartPtr&, unsigned, unsigned, const scaled&) const; AreaRef createPangoGlyphArea(const SmartPtr&, unsigned, unsigned, const scaled&) const; #if HAVE_XFT AreaRef createXftGlyphArea(const SmartPtr&, unsigned, unsigned, const scaled&) const; #endif // HAVE_XFT AreaRef shapeChar(const class ShapingContext&) const; AreaRef shapeStretchyCharV(const class ShapingContext&) const; AreaRef shapeStretchyCharH(const class ShapingContext&) const; SmartPtr pangoFontManager; #if HAVE_XFT SmartPtr xftFontManager; #endif // HAVE_XFT }; #endif // __Gtk_AdobeShaper_hh__