Skip to content

Page No. 316 - Font bold difference #3108

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

Open
Solymanx7 opened this issue Mar 16, 2025 · 4 comments
Open

Page No. 316 - Font bold difference #3108

Solymanx7 opened this issue Mar 16, 2025 · 4 comments

Comments

@Solymanx7
Copy link

Solymanx7 commented Mar 16, 2025

Alslam Alykom ,
I found little difference in the font of page 316 compared to 317 and 315.

Screenshot_2025-03-16-05-30-09-62_4903143072c5ab9d0c2460357ad05fff.jpg

Screenshot_2025-03-16-05-30-18-18_4903143072c5ab9d0c2460357ad05fff.jpg

@ahmedre
Copy link
Contributor

ahmedre commented Mar 16, 2025

Salam 3alaikum,
JazakumAllah khairan.
I don't see that we special cased the font when generating these pages from the King Fahd Quran Complex fonts, so I think this is just how the font for that page was. You can see the image generator here. If this is really bothering you and you want to tweak the generator to generate a version that looks more similar, please send the font parameters and can try it here in sha' Allah and update the page if so.
Walsalam 3alaikum.

@Solymanx7
Copy link
Author

Thank you for the response, did you try to make page 316 bold and if so could you please show me how it looks. I can see an obvious difference in font thickness, and I think it's better to try to make the fonts in the same thickness.

Thank you in advance

@ahmedre
Copy link
Contributor

ahmedre commented Mar 16, 2025

Unfortunately it doesn't matter because the font itself doesn't support bold. Trying it shows it doesn't make much of a difference - you can see here.

        $page->{image}->stringFT($color, $font, $ptsize, 0, $coord_x, $coord_y, $glyph->{text}, {
                resolution => '96,94',
                kerning => 0
                kerning => 0,
                weight => 'bold' // added this per Claude
        });

the only other option is risky and I don't want to do it - which is draw it multiple times on top of each other with a very small offset. I don't think there's much we can do here unfortunately.

@Solymanx7
Copy link
Author

Solymanx7 commented Mar 17, 2025

Tried to think for different approaches couldn't find another solution, and as we see it's from the main source as you said earlier.
I appreciate your efforts.

May Allah bless you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants