Skip to content

hb_face_create() with an empty blob #1572

@khaledhosny

Description

@khaledhosny

I was expecting the code below to print 1, but it prints 0; even though hb_face_create() is essentially returning an empty face, it is still not equal to hb_face_get_empty (). Is this expected?

#include <stdio.h>
#include <hb.h>

int
main (int argc, char** argv)
{
  printf("%d\n", hb_face_create (hb_blob_get_empty (), 0) == hb_face_get_empty ());
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions