Code Monkey home page Code Monkey logo

Comments (9)

nerdypepper avatar nerdypepper commented on May 27, 2024

I personally dont use ligatures because of inconsistencies.

I will surely look into this.

Did you notice these spaces in creep as well?

from scientifica.

suunr avatar suunr commented on May 27, 2024

Creep has it without spaces:

from scientifica.

nerdypepper avatar nerdypepper commented on May 27, 2024

Alright, it looks like creep has inconsistent character bounding boxes, so it is able to join the characters forming a ligature, by extending them beyond the grid lines.

Here's an example:

Creep:
creeplig

Scientifica:
scilig

I cannot extend the character in scientifica because it would break most linux terminals.

So, I have no solution to this issue as of now.

from scientifica.

suunr avatar suunr commented on May 27, 2024

Hmm, but why do some ligatures connect without an missing pixel, like the left arrow?

from scientifica.

nerdypepper avatar nerdypepper commented on May 27, 2024

Every character in scientifica is like this:

4px character + 1px space

Some characters fill the entire 5 pixels, thereby touching the character to its right.

A 5px character followed by a 4px char will appear to be joint, whereas a 4px char followed by another character will have 1px space in between, which is what you are seeing.

Now, it is possible to make this 4px char wider by adding another pixel, for the sake of ligatures, but I personally am not a fan of symbols like equals and minus joining up.

Maybe I could export a separate version with 'ligatures enabled', which are basically certain characters occupying all 5 pixels.

from scientifica.

suunr avatar suunr commented on May 27, 2024

Would it then maybe be possible to create a special symbol, for example like the powerline arrow, which is a 5px wide minus sign?

from scientifica.

nerdypepper avatar nerdypepper commented on May 27, 2024

Yeah sure. I can put them in the private use area block.

You could accordingly use them in the creep.vim plugin.

It should be up in the latest commit.

Edit:
U+E09E [  ] and U+E09F [  ] have been added as of this commit, for 5px wide equals sign and a 5px wide minus sign.

I'd recommend you refresh the font cache to see them.

fc-cache -fv

Restart Xorg if that does not work.

from scientifica.

suunr avatar suunr commented on May 27, 2024

Sorry for the long response time, i had to setup my system again.
The 5px wide minus sign works perfectly and the new arrow looks pretty nice too. But the equals sign is 1px too high:

Also thanks for working on this, even tho you don't like ligatures 😄

from scientifica.

nerdypepper avatar nerdypepper commented on May 27, 2024

Thanks for pointing it out!

It should be fixed in the latest commit.

I'm glad you like it!

from scientifica.

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.