react-pdf icon indicating copy to clipboard operation
react-pdf copied to clipboard

Unicode U+1F16A and U+1F16B do not render

Open cooperate opened this issue 10 months ago • 2 comments

Describe the bug Regardless of what font family I use, these glyphs do not render as expected and instead only spit out "<j" and "<k" respectively.

I noticed internally react-pdf has a fallback function for glyphs but something is wrong as the fallback does not render the glyphs as expected?

To Reproduce Steps to reproduce the behavior including code snippet (if applies):

Attempt to render 🅪 and 🅫

Observe that regardless of font family, they only render <j and <k

Expected behavior Render the glyph as expected.

cooperate avatar Mar 17 '25 22:03 cooperate

We are having the same issues with other unicode character even if the font is correctly loaded and it has those symbols on it, for example

𝑥 𝐴 𝐵 𝑛

Using NotoSansMath

romenmedina-aircury avatar Mar 21 '25 08:03 romenmedina-aircury

Hi romen I do have a solution for this to render unicode 16-bit characters but now I have issues with the font fallback pattern not working as expected..once I have this all resolved I will be making a PR.

cooperate avatar Mar 26 '25 19:03 cooperate