"Fossies" - the Fresh Open Source Software Archive

Member "libgdiplus-6.0.2/src/font.h" (31 Jul 2019, 2951 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.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 #ifndef __FONT_H__
   32 #define __FONT_H__
   33 
   34 /* Font public API (only!) */
   35 
   36 GpStatus WINGDIPAPI GdipCreateFont (GDIPCONST GpFontFamily *family, REAL emSize, INT style, Unit unit, GpFont **font);
   37 GpStatus WINGDIPAPI GdipCreateFontFromDC (HDC hdc, GpFont **font);
   38 
   39 GpStatus WINGDIPAPI GdipCreateFontFromLogfontA (HDC hdc, GDIPCONST LOGFONTA *logfont, GpFont **font);
   40 GpStatus WINGDIPAPI GdipCreateFontFromLogfontW (HDC hdc, GDIPCONST LOGFONTW *logfont, GpFont **font);
   41 
   42 GpStatus WINGDIPAPI GdipCloneFont (GpFont *font, GpFont **cloneFont);
   43 
   44 GpStatus WINGDIPAPI GdipDeleteFont (GpFont *font);
   45 GpStatus WINGDIPAPI GdipGetLogFontA (GpFont *font, GpGraphics *graphics, LOGFONTA *logfontA);
   46 GpStatus WINGDIPAPI GdipGetLogFontW (GpFont *font, GpGraphics *graphics, LOGFONTW *logfontW);
   47 GpStatus WINGDIPAPI GdipGetFontHeight (GDIPCONST GpFont *font, GDIPCONST GpGraphics *graphics, REAL *height);
   48 GpStatus WINGDIPAPI GdipGetFontHeightGivenDPI (GDIPCONST GpFont *font, REAL dpi, REAL *height);
   49 GpStatus WINGDIPAPI GdipGetFontSize (GpFont *font, REAL *size);
   50 GpStatus WINGDIPAPI GdipGetFontStyle (GpFont *font, INT *style);
   51 GpStatus WINGDIPAPI GdipGetFontUnit (GpFont *font, Unit *unit);
   52 GpStatus WINGDIPAPI GdipGetFamily (GpFont *font, GpFontFamily **family);
   53 
   54 /* libgdiplus extra API (not availble in MSGDI+ but exported from libgdiplus) */
   55 GpStatus WINGDIPAPI GdipCreateFontFromHfontA (HFONT hfont, GpFont **font, void *lf);
   56 
   57 #endif