not drawing the complete letter
When I try to draw letter "H" using the attached font, it appears cut from the end.

I don't know where is the problem come from? harfbuzz or cairo ? so I hesitate to report it in main harfbuzz repository.
the font: Edw.zip
HarfBuzz doesn't draw anything.
@khaledhosny
Whithout checking the font, the glyph might have a -ve left side bearing and the code that is creating Cairo surface is only taking the glyph advance into account when setting the width.
This code does not take glyph extents into account. https://github.com/harfbuzz/harfbuzz-tutorial/blob/d09b20511a0feb918c557ae3c89592bf8627baa2/hello-harfbuzz-freetype.c#L102-L110
I meant right side bearing.
That's actually expected. hb-view etc work the same way. User should add more margin if needed.
@khaledhosny how I can add right side bearing automatically?
Use hb_font_get_glyph_extents() to get the glyph bounding box and use this to calculate the ”ink” extents of the line.