Skip to content

(libSkShaper) Combined emoji will be drawn as multiple emojiΒ #195

@Polyisoprene

Description

@Polyisoprene

Describe the bug
a combined emoji like ✌🏻 will be drawn as two emoji
image

To Reproduce
Steps to reproduce the behavior:

text = "✌🏻"
surface = skia.Surface(50,50)
paint = skia.Paint(AntiAlias=True, Color=skia.Color(0,0,0,255))
typeface = skia.FontMgr().matchFamilyStyleCharacter( "Noto Sans CJK SC",skia.FontStyle().Normal,["zh", "en"], ord(text))
font = skia.Font(typeface,10)
blob = skia.TextBlob(text, font)
canvas.drawTextBlob(blob, 30,30, paint)

Expected behavior

single emoji appears on the image

Desktop (please complete the following information):

  • OS: Ubuntu20.04
  • Python: 3.10
  • skia-python version: 87.5

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions