Closed sumotoy closed 8 years ago
So as it available in font metrics, then yes. But font's modification can change its to wrong value.
Tags fnt_descent
and fnt_ascent
added in rev. 07451b763aa7769554a547d348ca0aad46caee6e from 2016-06-07.
Wow! Thanks riuson, very useful!
font's modification can change its to wrong value.
You right. I've compiled https://github.com/riuson/lcd-image-converter/commit/07451b763aa7769554a547d348ca0aad46caee6e and tested. It works! I've noticed that optimixe height have strong impact on ascent/descent. Cutting pixel from top should subtract from ascent and from bottom to descent
Because after getting images for characters we have just images. Every image can be modified independently, by width and height. So common 'descent' property of source font become invalid.
I understand, even if I never touched a single height but I always use Optimize height... Can be useful detect single height change and drop the ascent/descent value to 0, as opposite (if no single height change detected) track the Optimize height... changes and update ascent/descent values? Like this it's possible use ascent/descent when one of the 2 values is not 0.
I think it's possible. But you have to wait much longer time than that taken by implementation of previous feature.
No rush riuson, this app is still the best one I ever find! I'm actually including link in all display libraries!
Try compile branch feature-operations
, revision 153bc449d399ea94ae1afa303e1b32e794d0f012 .
Ascent/descent are common for entire font.
Can be modified by font resize/minimize height. Not affected by functions in image menu.
Amazing! Thanks, I will try this afternoon, can't wait!
I have uploaded compiled binary rev. aeaec30c605c26a2120fc3fd7643d96b8050e187 from 2016-06-27.
You got it! It works! Obviously it doesn't work for old stored fonts but I have converted new one and it works! I have tried optimized height and correctly updated descent-ascent! Did you save the original font ascent/descent data in the saved font file? (NOT the converted one, I know it's present)
Obviously it doesn't work for old stored fonts
Existing fonts may have a modified height that makes assumptions about the value of these properties is useless. Otherwise, it would be possible to take them out of the font metrics.
Did you save the original font ascent/descent data in the saved font file?
I save only current (modified) data in xml font file:
<size>-1</size>
<ascent>12</ascent>
<descent>3</descent>
<style>Normal</style>
This values can be changed with font resize/minimize. So it is not original values of the font.
It's a request, not a bug!
It's possible access the 'descent' parameter from baseline in template? Like this: