1295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner/***************************************************************************/ 2295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner/* */ 3295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner/* pshpic.h */ 4295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner/* */ 5295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner/* The FreeType position independent code services for pshinter module. */ 6295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner/* */ 7295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner/* Copyright 2009 by */ 8295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner/* Oran Agra and Mickey Gabel. */ 9295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner/* */ 10295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner/* This file is part of the FreeType project, and may only be used, */ 11295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner/* modified, and distributed under the terms of the FreeType project */ 12295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner/* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 13295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner/* this file you indicate that you have read the license and */ 14295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner/* understand and accept it fully. */ 15295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner/* */ 16295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner/***************************************************************************/ 17295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner 18295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner 19295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner#ifndef __PSHPIC_H__ 20295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner#define __PSHPIC_H__ 21295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner 2241371e1e39c8528eb0c4bc40683c736e6683e60cEric Vannier 23295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' TurnerFT_BEGIN_HEADER 24295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner 25295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner#include FT_INTERNAL_PIC_H 26295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner 27295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner#ifndef FT_CONFIG_OPTION_PIC 28295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner 29295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner#define FTPSHINTER_INTERFACE_GET pshinter_interface 30295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner 31295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner#else /* FT_CONFIG_OPTION_PIC */ 32295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner 33295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner#include FT_INTERNAL_POSTSCRIPT_HINTS_H 34295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner 35295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner typedef struct PSHinterPIC_ 36295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner { 37295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner PSHinter_Interface pshinter_interface; 38295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner } PSHinterPIC; 39295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner 40295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner#define GET_PIC(lib) ((PSHinterPIC*)((lib)->pic_container.autofit)) 41295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner#define FTPSHINTER_INTERFACE_GET (GET_PIC(library)->pshinter_interface) 42295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner 4341371e1e39c8528eb0c4bc40683c736e6683e60cEric Vannier /* see pshpic.c for the implementation */ 4441371e1e39c8528eb0c4bc40683c736e6683e60cEric Vannier void 4541371e1e39c8528eb0c4bc40683c736e6683e60cEric Vannier pshinter_module_class_pic_free( FT_Library library ); 4641371e1e39c8528eb0c4bc40683c736e6683e60cEric Vannier 4741371e1e39c8528eb0c4bc40683c736e6683e60cEric Vannier FT_Error 4841371e1e39c8528eb0c4bc40683c736e6683e60cEric Vannier pshinter_module_class_pic_init( FT_Library library ); 49295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner 50295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner#endif /* FT_CONFIG_OPTION_PIC */ 51295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner 52295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner /* */ 53295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner 54295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' TurnerFT_END_HEADER 55295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner 56295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner#endif /* __PSHPIC_H__ */ 57295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner 58295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner 59295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner/* END */ 60