Ebrahim Byagowi | f35b3e9 | 2015-09-11 09:48:12 +0430 | [diff] [blame] | 1 | /* |
Ebrahim Byagowi | 45149eb | 2019-02-22 13:13:42 +0330 | [diff] [blame] | 2 | * Copyright © 2015-2019 Ebrahim Byagowi |
Ebrahim Byagowi | f35b3e9 | 2015-09-11 09:48:12 +0430 | [diff] [blame] | 3 | * |
| 4 | * This is part of HarfBuzz, a text shaping library. |
| 5 | * |
| 6 | * Permission is hereby granted, without written agreement and without |
| 7 | * license or royalty fees, to use, copy, modify, and distribute this |
| 8 | * software and its documentation for any purpose, provided that the |
| 9 | * above copyright notice and the following two paragraphs appear in |
| 10 | * all copies of this software. |
| 11 | * |
| 12 | * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR |
| 13 | * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES |
| 14 | * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN |
| 15 | * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH |
| 16 | * DAMAGE. |
| 17 | * |
| 18 | * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, |
| 19 | * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND |
| 20 | * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS |
| 21 | * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO |
| 22 | * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 23 | */ |
| 24 | |
| 25 | #ifndef HB_DIRECTWRITE_H |
| 26 | #define HB_DIRECTWRITE_H |
| 27 | |
| 28 | #include "hb.h" |
| 29 | |
Behdad Esfahbod | 8ca892b | 2025-03-11 00:19:34 -0600 | [diff] [blame] | 30 | #include <dwrite_3.h> |
Behdad Esfahbod | 41dcc49 | 2025-03-10 23:40:39 -0600 | [diff] [blame] | 31 | |
Ebrahim Byagowi | f35b3e9 | 2015-09-11 09:48:12 +0430 | [diff] [blame] | 32 | HB_BEGIN_DECLS |
| 33 | |
Ebrahim Byagowi | 45149eb | 2019-02-22 13:13:42 +0330 | [diff] [blame] | 34 | HB_EXTERN hb_face_t * |
Khaled Hosny | a8fd297 | 2025-02-13 17:16:20 +0200 | [diff] [blame] | 35 | hb_directwrite_face_create (IDWriteFontFace *dw_face); |
Ebrahim Byagowi | 45149eb | 2019-02-22 13:13:42 +0330 | [diff] [blame] | 36 | |
Ebrahim Byagowi | b292772 | 2019-03-29 13:00:56 -0700 | [diff] [blame] | 37 | HB_EXTERN IDWriteFontFace * |
Khaled Hosny | 484e8d4 | 2025-02-28 00:14:25 +0200 | [diff] [blame] | 38 | hb_directwrite_face_get_dw_font_face (hb_face_t *face); |
Ebrahim Byagowi | b292772 | 2019-03-29 13:00:56 -0700 | [diff] [blame] | 39 | |
Khaled Hosny | a8fd297 | 2025-02-13 17:16:20 +0200 | [diff] [blame] | 40 | HB_EXTERN hb_font_t * |
| 41 | hb_directwrite_font_create (IDWriteFont *dw_font); |
| 42 | |
| 43 | HB_EXTERN IDWriteFont * |
Khaled Hosny | 03cf156 | 2025-02-20 21:56:56 +0200 | [diff] [blame] | 44 | hb_directwrite_font_get_dw_font (hb_font_t *font); |
Khaled Hosny | a8fd297 | 2025-02-13 17:16:20 +0200 | [diff] [blame] | 45 | |
Khaled Hosny | 484e8d4 | 2025-02-28 00:14:25 +0200 | [diff] [blame] | 46 | #ifndef HB_DISABLE_DEPRECATED |
| 47 | |
| 48 | HB_DEPRECATED_FOR (hb_directwrite_face_get_dw_font_face) |
| 49 | HB_EXTERN IDWriteFontFace * |
| 50 | hb_directwrite_face_get_font_face (hb_face_t *face); |
| 51 | |
| 52 | #endif |
| 53 | |
Ebrahim Byagowi | f35b3e9 | 2015-09-11 09:48:12 +0430 | [diff] [blame] | 54 | HB_END_DECLS |
| 55 | |
Ebrahim Byagowi | 6b861db | 2016-06-21 13:57:26 +0430 | [diff] [blame] | 56 | #endif /* HB_DIRECTWRITE_H */ |