Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlight font formatting and style #1932

Open
4 tasks done
raf-microsoft opened this issue Jan 12, 2025 · 1 comment
Open
4 tasks done

Highlight font formatting and style #1932

raf-microsoft opened this issue Jan 12, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@raf-microsoft
Copy link

raf-microsoft commented Jan 12, 2025

Before you start - checklist

  • I followed instructions in documentation written for my React-PDF version
  • I have checked if this bug is not already reported
  • I have checked if an issue is not listed in Known issues
  • If I have a problem with PDF rendering, I checked if my PDF renders properly in PDF.js demo

Description

When I run search in the pdf.js the highlight works nicely, the font is the same as the pdf and the styling looks correct.

image

when I do the same based on Wiki the fonts are inconsistent, and the highlight is a bit of

image

Steps to reproduce

Run the example form the Wiki https://github.com/wojtekmaj/react-pdf/wiki/Recipes

Expected behaviour

The highlight fonts should follow the document fonts.

Actual behaviour

The size & style of the font is inconsistent.

Additional information

No response

Environment

All latest.

@raf-microsoft raf-microsoft added the bug Something isn't working label Jan 12, 2025
@raf-microsoft
Copy link
Author

The same happens when the text is selected:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant