Comments (16)
Yes, amazing that it's possible to do a flexible adjustment from the command line now. Great work, @chrissimpkins! Thanks for this tool.
from font-line.
What editor on Linux?
from font-line.
It's kate from KDE.
from font-line.
mind printing out the metrics report with the command:
$ font-line report [fontpath]
Addendum: for pre-modification and post-modification files...
from font-line.
Sure:
$ font-line report Hack-Bold-linegap50.ttf
=== Hack-Bold-linegap50.ttf ===
b'Version 2.019; ttfautohint (v1.4.1) -l 4 -r 80 -G 350 -x 0 -H 260 -D latn -f latn -m "Hack-Bold-TA.txt" -w G -W -t -X ""'
SHA1: fc1fefee0e52f0962104ae81efab57e682aff75d
--- Metrics ---
[head] Units per Em: 2048
[head] yMax: 1980
[head] yMin: -807
[OS/2] TypoAscender: 1556
[OS/2] TypoDescender: -492
[OS/2] WinAscent: 2068
[OS/2] WinDescent: 1004
[hhea] Ascent: 2068
[hhea] Descent: -1004
[hhea] LineGap: 0
[OS/2] TypoLineGap: 1024
--- Height Calculations by Table Values ---
[OS/2] TypoAscender to TypoDescender: 2048
[OS/2] WinAscent to WinDescent: 3072
[hhea] Ascent to Descent: 3072
--- Delta Values ---
WinAscent to TypoAscender: 512
Ascent to TypoAscender: 512
WinDescent to TypoDescender: 512
Descent to TypoDescender: 512
--- Ratios ---
(Typo Asc + Desc + Linegap) / UPM: 1.5
(winAsc + winDesc) / UPM: 1.5
(hhea Asc + Desc) / UPM: 1.5
from font-line.
Yeah, it seems like a KDE issue. Sublime text shows my modified font correctly.
from font-line.
Might be worth an issue report on the Kate tracker.
Are you happy with the line spacing adjustments? It looks like it does render with expanded line spacing in your screenshot.
from font-line.
@Phantom-code Great to hear! Mind closing if this is addressed?
from font-line.
I'm still unsure if we can think about this issue that it's addressed, but I close it for now.
from font-line.
If you come across additional information feel free to reopen and post it!
from font-line.
It seems that QtCreator has the same issue.
from font-line.
mind trying with a couple of other fonts to see if you find the same problem? I don't know if this is the change or the way that we have the line spacing set that is leading to problems.
from font-line.
Sure, I'll try it tonight.
from font-line.
Any updates here?
from font-line.
Oh! I'm sorry, I thought my answer was sent. I modified the "LiberationMono" font and it looks as it should in QtCreator:
from font-line.
Thank you! I will see if I can find any documentation on the renderer used in QtCreator. @jorgheymans is currently working on a command line tool to emulate text editor renders with the Java rendering approach and we have plans to do this across more renderer types so that we can move this testing out of the editors. Will see if this editor's renderer is amenable to this approach.
from font-line.
Related Issues (20)
- Fix version string reporting in report command HOT 1
- In `modify_linegap_percent()`, shouldn't all the `int()` functions be `round()` instead?
- Add support for Markdown formatted metrics list
- Add support for JSON formatted metrics standard output
- Fix License link in ToC
- Better error handling? Crashes when an attribute is not present HOT 12
- Add test font for missing attribute issue
- pip install fails due to permission error HOT 2
- shebang issue HOT 4
- Eliminate Python 2.7 support
- font-line will be upgrading to Py3.6+ support only! HOT 1
- Option to modify ┬ │ ┼ ┴ ├ ┤┘└┌ ┐ glyph heights HOT 7
- Dependabot couldn't authenticate with https://pypi.python.org/simple/ HOT 1
- Add metrics warning to report tool for values that values fall within yMin / yMax HOT 1
- Allow negative percents HOT 10
- Percent command does not properly calculate line spacing when fonts define TypoAscender + TypoDescender > UPM HOT 13
- Report data modification and writing back to fontfile! HOT 6
- Add an option to change font family name and/or id HOT 17
- Capital height and X height in Metrics Report. Feasible? HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from font-line.