Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. /*
  2.  * Copyright 2008 Adam Blokus <adamblokus@gmail.com>
  3.  * Copyright 2009 John Tytgat <joty@netsurf-browser.org>
  4.  *
  5.  * This file is part of NetSurf, http://www.netsurf-browser.org/
  6.  *
  7.  * NetSurf is free software; you can redistribute it and/or modify
  8.  * it under the terms of the GNU General Public License as published by
  9.  * the Free Software Foundation; version 2 of the License.
  10.  *
  11.  * NetSurf is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  18.  */
  19.  
  20.  /** \file
  21.   * Font handling in Haru pdf documents (interface).
  22.   */
  23.  
  24. #ifndef _NETSURF_RENDER_FONT_HARU_H_
  25. #define _NETSURF_RENDER_FONT_HARU_H_
  26.  
  27. #include <hpdf.h>
  28.  
  29. #include "render/font.h"
  30. #include "desktop/plot_style.h"
  31.  
  32. bool haru_nsfont_apply_style(const plot_font_style_t *fstyle,
  33.                                 HPDF_Doc doc, HPDF_Page page,
  34.                                 HPDF_Font *font, HPDF_REAL *font_size);
  35.  
  36. void haru_nsfont_set_scale(float s);
  37.  
  38. extern const struct font_functions haru_nsfont;
  39.  
  40. #endif
  41.