src/java.desktop/share/native/libfreetype/include/freetype/internal/services/svttglyf.h
equal
deleted
inserted
replaced
1 /***************************************************************************/ |
1 /**************************************************************************** |
2 /* */ |
2 * |
3 /* svttglyf.h */ |
3 * svttglyf.h |
4 /* */ |
4 * |
5 /* The FreeType TrueType glyph service. */ |
5 * The FreeType TrueType glyph service. |
6 /* */ |
6 * |
7 /* Copyright 2007-2018 by */ |
7 * Copyright (C) 2007-2019 by |
8 /* David Turner. */ |
8 * David Turner. |
9 /* */ |
9 * |
10 /* This file is part of the FreeType project, and may only be used, */ |
10 * This file is part of the FreeType project, and may only be used, |
11 /* modified, and distributed under the terms of the FreeType project */ |
11 * modified, and distributed under the terms of the FreeType project |
12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
12 * license, LICENSE.TXT. By continuing to use, modify, or distribute |
13 /* this file you indicate that you have read the license and */ |
13 * this file you indicate that you have read the license and |
14 /* understand and accept it fully. */ |
14 * understand and accept it fully. |
15 /* */ |
15 * |
16 /***************************************************************************/ |
16 */ |
17 |
17 |
18 #ifndef SVTTGLYF_H_ |
18 #ifndef SVTTGLYF_H_ |
19 #define SVTTGLYF_H_ |
19 #define SVTTGLYF_H_ |
20 |
20 |
21 #include FT_INTERNAL_SERVICE_H |
21 #include FT_INTERNAL_SERVICE_H |
37 { |
37 { |
38 TT_Glyf_GetLocationFunc get_location; |
38 TT_Glyf_GetLocationFunc get_location; |
39 }; |
39 }; |
40 |
40 |
41 |
41 |
42 #ifndef FT_CONFIG_OPTION_PIC |
|
43 |
|
44 #define FT_DEFINE_SERVICE_TTGLYFREC( class_, get_location_ ) \ |
42 #define FT_DEFINE_SERVICE_TTGLYFREC( class_, get_location_ ) \ |
45 static const FT_Service_TTGlyfRec class_ = \ |
43 static const FT_Service_TTGlyfRec class_ = \ |
46 { \ |
44 { \ |
47 get_location_ \ |
45 get_location_ \ |
48 }; |
46 }; |
49 |
|
50 #else /* FT_CONFIG_OPTION_PIC */ |
|
51 |
|
52 #define FT_DEFINE_SERVICE_TTGLYFREC( class_, get_location_ ) \ |
|
53 void \ |
|
54 FT_Init_Class_ ## class_( FT_Service_TTGlyfRec* clazz ) \ |
|
55 { \ |
|
56 clazz->get_location = get_location_; \ |
|
57 } |
|
58 |
|
59 #endif /* FT_CONFIG_OPTION_PIC */ |
|
60 |
47 |
61 /* */ |
48 /* */ |
62 |
49 |
63 |
50 |
64 FT_END_HEADER |
51 FT_END_HEADER |