This isn't fully baked, but it looks mostly ok. The ghost emoji has a weirdly positioned white patch; there's something funky with its positioning that needs to be investigated. There's some copypasta here; a bunch of the cairo related stuff was copied and adapted from the harfbuzz impl. I plan to refactor the latter in terms of the former to reduce the amount of code overall.