projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6a622b
)
[subset] Add TODO
author
Behdad Esfahbod
<behdad@behdad.org>
Tue, 7 May 2019 18:08:08 +0000
(11:08 -0700)
committer
Behdad Esfahbod
<behdad@behdad.org>
Tue, 7 May 2019 18:08:08 +0000
(11:08 -0700)
src/hb-subset.cc
patch
|
blob
|
history
diff --git
a/src/hb-subset.cc
b/src/hb-subset.cc
index
5f482e1
..
800bd35
100644
(file)
--- a/
src/hb-subset.cc
+++ b/
src/hb-subset.cc
@@
-76,6
+76,8
@@
_subset2 (hb_subset_plan_t *plan)
if (source_blob->data)
{
hb_vector_t<char> buf;
+ /* TODO Not all tables are glyph-related. 'name' table size for example should not be
+ * affected by number of glyphs. Accommodate that. */
unsigned int buf_size = _plan_estimate_subset_table_size (plan, source_blob->length);
DEBUG_MSG(SUBSET, nullptr, "OT::%c%c%c%c initial estimated table size: %u bytes.", HB_UNTAG (tag), buf_size);
if (unlikely (!buf.alloc (buf_size)))