Giter VIP home page Giter VIP logo

Comments (16)

psycha0s avatar psycha0s commented on September 26, 2024 1

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.

chrissimpkins avatar chrissimpkins commented on September 26, 2024

What editor on Linux?

from font-line.

psycha0s avatar psycha0s commented on September 26, 2024

It's kate from KDE.

from font-line.

chrissimpkins avatar chrissimpkins commented on September 26, 2024

mind printing out the metrics report with the command:

$ font-line report [fontpath]

Addendum: for pre-modification and post-modification files...

from font-line.

psycha0s avatar psycha0s commented on September 26, 2024

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.

psycha0s avatar psycha0s commented on September 26, 2024

Yeah, it seems like a KDE issue. Sublime text shows my modified font correctly.

from font-line.

chrissimpkins avatar chrissimpkins commented on September 26, 2024

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.

chrissimpkins avatar chrissimpkins commented on September 26, 2024

@Phantom-code Great to hear! Mind closing if this is addressed?

from font-line.

psycha0s avatar psycha0s commented on September 26, 2024

I'm still unsure if we can think about this issue that it's addressed, but I close it for now.

from font-line.

chrissimpkins avatar chrissimpkins commented on September 26, 2024

If you come across additional information feel free to reopen and post it!

from font-line.

psycha0s avatar psycha0s commented on September 26, 2024

It seems that QtCreator has the same issue.

before:
2

after:
1

from font-line.

chrissimpkins avatar chrissimpkins commented on September 26, 2024

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.

psycha0s avatar psycha0s commented on September 26, 2024

Sure, I'll try it tonight.

from font-line.

chrissimpkins avatar chrissimpkins commented on September 26, 2024

Any updates here?

from font-line.

psycha0s avatar psycha0s commented on September 26, 2024

Oh! I'm sorry, I thought my answer was sent. I modified the "LiberationMono" font and it looks as it should in QtCreator:

screenshot

from font-line.

chrissimpkins avatar chrissimpkins commented on September 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.