Giter Club home page Giter Club logo

Comments (6)

mayagao avatar mayagao commented on May 26, 2024 1

we can stick with Menlo, i wonder if it is possible to make sure code font is 1px smaller than paragraph font, for example 14px open sans with 13px menlo

screen shot 2016-12-14 at 2 03 06 pm

from assembly.

samanpwbb avatar samanpwbb commented on May 26, 2024

We shouldn't use a webfont – no need to weigh down the page for code styling. Lets find a nice fontstack that uses default monoweight fonts.

from assembly.

samanpwbb avatar samanpwbb commented on May 26, 2024

Our options are either:

  • Stick with a Menlo stack
  • Use a webfont

I can get inconsolata down to 26kb, maybe smaller. We'd need bold and regular weights. Source code pro has a license that doesn't allow it to be modified (fontsquirrel declined it when i tried to upload it).

If I'm not mistaken, fonts only get loaded if the font is on the page. I am pretty neutral about adding an extra 25-50kb to the page just for monospaced fonts, but I could be influenced either way.

from assembly.

davidtheclark avatar davidtheclark commented on May 26, 2024

i wonder if it is possible to make sure code font is 1px smaller than paragraph font

We can do something like that using em units.

from assembly.

samanpwbb avatar samanpwbb commented on May 26, 2024

em units on .txt-mono make sense to me.

from assembly.

samanpwbb avatar samanpwbb commented on May 26, 2024

done with #322

from assembly.

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.