/* * Copyright © 2011,2012 Google, Inc. * * This is part of HarfBuzz, a text shaping library. * * Permission is hereby granted, without written agreement and without * license or royalty fees, to use, copy, modify, and distribute this * software and its documentation for any purpose, provided that the * above copyright notice and the following two paragraphs appear in * all copies of this software. * * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH * DAMAGE. * * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * Google Author(s): Behdad Esfahbod */ #ifndef OT_NAME_NAME_HH #define OT_NAME_NAME_HH #include "../../hb-open-type.hh" #include "../../hb-ot-name-language.hh" #include "../../hb-aat-layout.hh" #include "../../hb-utf.hh" namespace OT { template <typename in_utf_t, typename out_utf_t> inline unsigned int hb_ot_name_convert_utf (hb_bytes_t bytes, unsigned int *text_size /* IN/OUT */, typename out_utf_t::codepoint_t *text /* OUT */) { … } #define entry_score … #define entry_index … /* * name -- Naming * https://docs.microsoft.com/en-us/typography/opentype/spec/name */ #define HB_OT_TAG_name … #define UNSUPPORTED … struct NameRecord { … }; static int _hb_ot_name_entry_cmp_key (const void *pa, const void *pb, bool exact) { … } static int _hb_ot_name_entry_cmp (const void *pa, const void *pb) { … } struct name { … }; #undef entry_index #undef entry_score struct name_accelerator_t : name::accelerator_t { … }; } /* namespace OT */ #endif /* OT_NAME_NAME_HH */