[API] Make hb_face_reference_table() return empty blob instead of NULL
authorBehdad Esfahbod <behdad@behdad.org>
Wed, 20 Apr 2011 21:21:23 +0000 (17:21 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 20 Apr 2011 21:21:23 +0000 (17:21 -0400)
commit9417c1c0d2b005eadf0c087ca695121a6200d0f7
tree2d820165e712bb8088fa94acf5047b752546dca1
parentc035812feb0d385a9e8c334631738e4915912c71
[API] Make hb_face_reference_table() return empty blob instead of NULL

The idea here is that:

  - Like pretty much all other API in harfbuzz, user does not have to
    check for NULL.

  - In any caller code, the case of missing table should be handled
    exactly the same way that a too-short table is handled.  Turning
    a non-existent talbe into a table of size 0 makes the user code
    safer.
src/hb-font.cc
src/hb-open-type-private.hh