Diya Solanki

Results 37 comments of Diya Solanki

Hey, I would like to work on this issue. Thanks.

Thanks to @perminder-17 for helping me with this issue. This is what we came up with, which solves the issue. There may be better ways to achieve this still. Let...

@dhowe 0.9084: This is because the p.textAscent() is 0.9084 times textsize when we don't use textFont. When we use textfont we adjust the offset and when we don't get the...

@dhowe Sorry for replying so late, I was busy with university exams. After going through the calculations a little bit, I am confused. textLeading is defined as spacing between lines...

@dhowe This is the Bottom alignment: ![image](https://github.com/processing/p5.js/assets/110971977/19313bfc-8faa-4947-a71c-2f32c9b26dcf) This is the Top alignment: ![image](https://github.com/processing/p5.js/assets/110971977/e1595c2e-7c92-4c1d-bf93-ced40646ae60) This is Center Alignment: ![image](https://github.com/processing/p5.js/assets/110971977/9667b74a-000f-4e9a-bef6-f2c030b4d851) So I thought I need to incorporate the full height and tried...

Idk what is wrong with the calculation of the ascent because the top alignment should have worked right? or is there an extra offset at the ascent because of the...

@limzykenneth Oh! maybe. I will look into this again. I still have the branch where I was working on this issue. Thanks for mentioning another potential cause of why this...

I think there is redundancy in storing values that is why the tests fail. I will look into it as soon as possible.

@davepagurek Please take a look and let me know if this works and if further changes are needed, maybe unit tests, examples, or even how I've implemented this. Thanks.

@davepagurek made some changes, let me know if these work.Thanks.