]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/letest/FontTableCache.h
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
4 **********************************************************************
5 * Copyright (C) 2003-2013, International Business Machines
6 * Corporation and others. All Rights Reserved.
7 **********************************************************************
10 #ifndef __FONTTABLECACHE_H
12 #define __FONTTABLECACHE_H
14 #include "layout/LETypes.h"
18 struct FontTableCacheEntry
;
25 virtual ~FontTableCache();
27 const void *find(LETag tableTag
, size_t &length
) const;
30 virtual const void *readFontTable(LETag tableTag
, size_t &length
) const = 0;
31 virtual void freeFontTable(const void *table
) const;
35 void add(LETag tableTag
, const void *table
, size_t length
);
37 FontTableCacheEntry
*fTableCache
;
38 le_int32 fTableCacheCurr
;
39 le_int32 fTableCacheSize
;