OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #include "core/fxge/include/fx_freetype.h" | 7 #include "core/fxge/fx_freetype.h" |
8 | 8 |
9 #include "third_party/freetype/src/psnames/pstables.h" | 9 #include "third_party/freetype/src/psnames/pstables.h" |
10 | 10 |
11 static int xyq_search_node(char* glyph_name, | 11 static int xyq_search_node(char* glyph_name, |
12 int name_offset, | 12 int name_offset, |
13 int table_offset, | 13 int table_offset, |
14 wchar_t unicode) { | 14 wchar_t unicode) { |
15 int i, count; | 15 int i, count; |
16 | 16 |
17 // copy letters | 17 // copy letters |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 for (i = 0; i < count; i++) { | 162 for (i = 0; i < count; i++) { |
163 int child_offset = | 163 int child_offset = |
164 ft_adobe_glyph_list[i * 2 + 2] * 256 + ft_adobe_glyph_list[i * 2 + 3]; | 164 ft_adobe_glyph_list[i * 2 + 2] * 256 + ft_adobe_glyph_list[i * 2 + 3]; |
165 if (xyq_search_node(glyph_name, 0, child_offset, unicode)) | 165 if (xyq_search_node(glyph_name, 0, child_offset, unicode)) |
166 return; | 166 return; |
167 } | 167 } |
168 | 168 |
169 // failed, clear the buffer | 169 // failed, clear the buffer |
170 glyph_name[0] = 0; | 170 glyph_name[0] = 0; |
171 } | 171 } |
OLD | NEW |