First letter dissappears
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- react, typescript
- Domain
- frontend
Research direction
Reproduce the snippet in the react-pdf REPL, using the reported React-pDF version and flexDirection: "row" with the Greek text. Compare the rendering of the missing initial capital with the other letters and fonts; done means the complete word, including its first letter, renders correctly without regressing the surrounding layout.
Written by the indexing model from the issue text.
Description
Describe the bug
When rendering text inside a container that uses a custom style with flexDirection: "row", certain capital letters disappear. However, other Greek capital letters render completely fine under the exact same conditions.
I am using Roboto font, but i try other fonts and get the same result.
To Reproduce
The bug exists in {location}
<View style={styles.row}>
<Text style={styles.text}>Πελάτης:</Text>
<View
style={[
styles.headerTable,
{ width: 200, marginLeft: 10, marginBottom: 0 },
]}
>
<Text
style={[
styles.text,
{ paddingHorizontal: 15, width: "100%", textAlign: "center" },
]}
>
{brand_name}
</Text>
</View>
<Text style={[styles.text, { marginLeft: 30 }]}>Περιοχή:</Text>
<View
style={[
styles.headerTable,
{ maxWidth: 250, marginLeft: 10, width: 200, marginBottom: 0 },
]}
>
<Text
style={[
styles.text,
{
paddingHorizontal: 15,
width: "100%",
textAlign: "center",
},
]}
>
{locations}
</Text>
</View>
</View>
Additional info
text: {
fontSize: 10,
},
You can make use of react-pdf REPL to share the snippet
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
It must shows Kimolos, but it show imolos
But works well with greek letter, and other english characters
Desktop (please complete the following information):
- OS: Windows, MacOS, Ubunty
- Browser: all
- React-pdf version 4.5.1
- Dominant language
- TypeScript
- Stars
- 16.8k
- Forks
- 1.3k
- Avg merge
- 11m
- Merged PRs (30d)
- 2
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from diegomura/react-pdf
-
@react-pdf/font: published types import fontkit, but @types/fontkit is only a devDependencyPossibly taken @iliev-blnk claimed this 4 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Unable to set flexShrink to 0Possibly taken @adarshsm claimed this 3 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 1 day
-
@react-pdf/hyphenate: import-only exports map throws ERR_PACKAGE_PATH_NOT_EXPORTED in require-condition resolvers (every tsx script loading renderer >= 4.7 crashes)Possibly taken @cruzdanilo claimed this 32 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
diegomura/react-pdf#3551 · 2 reactions ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
diegomura/react-pdf#3606 · 1 reaction ·
Maintainers usually reply within 1 day
-
Text: first glyph dropped at line/run start when the font inserts glyphs via contextual alternatesOpen
Difficulty 3/5 1-2 days Newbie friendliness 54/100
Maintainers usually reply within 1 day
All issues in diegomura/react-pdf
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Merit-Systems/x402scan#1312 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Native Web
Difficulty 1/5 Under an hour Newbie friendliness 80/100
digitalfabrik/integreat-app#4517 ·
Maintainers usually reply within 2 days
-
TLS guide repeats certs/ in the certificate directoryPossibly taken @maheshrijal claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 92/100
prometheus/docs#3156 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
medusajs/dtc-starter#90 ·
Maintainers usually reply within 1 day