"Fossies" - the Fresh Open Source Software Archive

Member "libgdiplus-6.0.2/src/font-private.h" (31 Jul 2019, 2519 Bytes) of package /linux/misc/mono-sources/libgdiplus/libgdiplus-6.0.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "font-private.h": 5.6.1_vs_6.0.2.

    1 /*
    2  * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
    3  * and associated documentation files (the "Software"), to deal in the Software without restriction,
    4  * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
    5  * and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
    6  * subject to the following conditions:
    7  *
    8  * The above copyright notice and this permission notice shall be included in all copies or substantial
    9  * portions of the Software.
   10  *
   11  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
   12  * NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
   13  * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
   14  * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
   15  * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
   16  *
   17  * Authors:
   18  *      Alexandre Pigolkine (pigolkine@gmx.de)
   19  *      Duncan Mak (duncan@ximian.com)
   20  *      Miguel de Icaza (miguel@ximian.com)
   21  *      Ravindra (rkumar@novell.com)
   22  *      Sanjay Gupta (gsanjay@novell.com)
   23  *  Vladimir Vukicevic (vladimir@pobox.com)
   24  *  Geoff Norton (gnorton@customerdna.com)
   25  *      Jonathan Gilbert (logic@deltaq.org)
   26  *  Sebastien Pouliot  <sebastien@ximian.com>
   27  *
   28  * Copyright (C) 2003-2007 Novell, Inc (http://www.novell.com)
   29  */
   30 
   31 /*
   32  * NOTE: This is a private header files and everything is subject to changes.
   33  */
   34 
   35 #ifndef __FONT_PRIVATE_H__
   36 #define __FONT_PRIVATE_H__
   37 
   38 #include "gdiplus-private.h"
   39 
   40 #ifdef USE_PANGO_RENDERING
   41     #include <pango/pangofc-font.h>
   42     #include <pango/pangofc-fontmap.h>
   43     #include <pango/pangocairo.h>
   44 #endif
   45 
   46 struct _Font {
   47     float           sizeInPixels;
   48     FontStyle       style;
   49     unsigned char*      face;
   50     GpFontFamily        *family;
   51     float           emSize;
   52     GpUnit          unit;
   53 #ifdef USE_PANGO_RENDERING
   54     PangoFontDescription    *pango;
   55 #else
   56     cairo_font_face_t   *cairofnt;
   57 #endif
   58 };
   59 
   60 GpStatus gdip_create_font_without_validation (GDIPCONST GpFontFamily *family, REAL emSize, INT style, Unit unit, GpFont **font);
   61 void gdip_font_clear_pattern_cache (void) GDIP_INTERNAL;
   62 void gdip_delete_system_fonts (void) GDIP_INTERNAL;
   63 
   64 #ifdef USE_PANGO_RENDERING
   65 
   66 PangoFontDescription* gdip_get_pango_font_description (GpFont *font);
   67 
   68 #else
   69 
   70 cairo_font_face_t* gdip_get_cairo_font_face (GpFont *font);
   71 
   72 #endif
   73 
   74 #include "font.h"
   75 
   76 #endif