diegomura / react-pdf

📄 Create PDF files using React
https://react-pdf.org
MIT License
14.46k stars 1.14k forks source link

Rupees Symbol coming as text " 1 " #1643

Open devamiya opened 2 years ago

devamiya commented 2 years ago

When using the rupees symbol i.e. INR it's converting it to the "1"

Screenshot 2021-12-15 at 1 28 55 AM
Nishanth15 commented 2 years ago

Hi @devamiya, could you find any solution for this issue?

krushna-cruxbyte commented 1 year ago

Facing same issue. Any help will be appreciated.

kotesh-arya commented 1 month ago

Possible reason: Due to the pdf render not being able to process the font type of the Indian rupee, a supported font family should be provided to render the character.

import NotoSans from "../fonts/Noto_Sans/static/NotoSans_Condensed-Bold.ttf";

Font.register({
  family: "NotoSans",
  src: NotoSans,
});
const styles = StyleSheet.create({
  page: {
    display: "flex",
    /// remaining styles of the document