1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
|
/*
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
* Copyright (C) 2008 - INRIA - Allan CORNET
*
* This file must be used under the terms of the CeCILL.
* This source file is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also available at
* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
*
*/
#ifndef __RENDERERFONTMANAGER_H__
#define __RENDERERFONTMANAGER_H__
#ifdef __cplusplus
extern "C" {
#endif
#include "dynlib_renderer.h"
#include "BOOL.h"
/**
* @return number of fonts installed (used) by scilab
*/
RENDERER_IMPEXP int getNbInstalledFonts(void);
/**
* returns fontnames installed (used) by scilab
* @param[out] size of array returned
* @return fonts name
*/
RENDERER_IMPEXP char **getInstalledFontsName(int *sizeArray);
/**
* returns fontnames available on your system
* @param[out] size of array returned
* @return fonts name
*/
RENDERER_IMPEXP char **getAvailableFontsName(int *sizeArray);
/**
* check if a font name is available
* @param[in] a font name
* @return TRUE or FALSE
*/
RENDERER_IMPEXP BOOL isAvailableFontsName(char *fontname);
/**
* Add a new font from its font name.
* @param fontName name of the font to add.
* @return index of the added font.
*/
RENDERER_IMPEXP int addFont(char *fontname);
/**
* Replace a font in the font list by a new one.
* @param[in] index index of the font to replace
* @param[in] fontName Name of the font.
* @return index of the added font or -1 if an error occured.
*/
RENDERER_IMPEXP int changeFont(int index, char * fontName);
/**
* Replace a font in the font list by a new one.
* @param[in] index index of the font to replace
* @param[in] fontName Name of the font.
* @param[in] if it is Bold.
* @param[in] if it is Italic.
* @return index of the added font or -1 if an error occured.
*/
RENDERER_IMPEXP int changeFontWithProperty(int index, char * fontName, BOOL isBold, BOOL isItalic);
/**
* reset xlfont with initiale values
*/
RENDERER_IMPEXP void resetFontManager(void);
/**
* Replace a font in the font list by a new one loaded by its filename.
* @param[in] index index of the font to replace
* @param[in] filename of font
* @return index of the added font or -1 if an error occured.
*/
RENDERER_IMPEXP int changeFontFromFilename (int index, char * FontFilename);
/**
* Add a new font from its font filename.
* @param[in] filename of font
* @return index of the added font or -1 if an error occured.
*/
RENDERER_IMPEXP int addFontFromFilename (char * FontFilename);
#ifdef __cplusplus
}
#endif
#endif /* __RENDERERFONTMANAGER_H__ */
|