forked from mcneel/opennurbs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
opennurbs_apple_nsfont.h
43 lines (37 loc) · 1.12 KB
/
opennurbs_apple_nsfont.h
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
//
// Copyright (c) 1993-2022 Robert McNeel & Associates. All rights reserved.
// OpenNURBS, Rhinoceros, and Rhino3D are registered trademarks of Robert
// McNeel & Associates.
//
// THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY.
// ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR PURPOSE AND OF
// MERCHANTABILITY ARE HEREBY DISCLAIMED.
//
// For complete openNURBS copyright information see <http://www.opennurbs.org>.
//
////////////////////////////////////////////////////////////////
#if !defined(OPENNURBS_APPLE_NSFONT_INC_)
#define OPENNURBS_APPLE_NSFONT_INC_
#if defined(ON_RUNTIME_APPLE_CORE_TEXT_AVAILABLE)
ON_DECL
unsigned int ON_AppleFontGlyphIndex(
CTFontRef appleFont,
unsigned int unicode_code_point
);
ON_DECL
bool ON_AppleFontGetGlyphMetrics(
CTFontRef appleFont,
unsigned int font_design_units_per_M,
unsigned int glyphIndex,
class ON_TextBox& glyph_metrics
);
ON_DECL
bool ON_AppleFontGetGlyphOutline(
CTFontRef appleFont,
unsigned int font_design_units_per_M,
unsigned int glyphIndex,
ON_OutlineFigure::Type figure_type,
class ON_Outline& outline
);
#endif
#endif