Coder Social home page Coder Social logo

Comments (4)

meszaros-lajos-gyorgy avatar meszaros-lajos-gyorgy commented on June 11, 2024

You could try setting font smoothing:

-webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;

from overtones.

meszaros-lajos-gyorgy avatar meszaros-lajos-gyorgy commented on June 11, 2024

Or you can try reordering the urls in your @font definition to have the svg files on the top. The browsers will load the urls from top to bottom and will stop at the first valid url and not choose others, even if that means skipping a better alternative.

from overtones.

sunyatasattva avatar sunyatasattva commented on June 11, 2024

Hey @meszaros-lajos-gyorgy thank you for your tips. It was specifically a Windows thing, so unfortunately those properties didn't do the trick (but thanks for sharing as I didn't know them before).

I did not very well understand your suggestion on the @font definition, do you mind expanding on that? In any case, I have solved the issue, it was basically just a sub-pixel anti-aliasing issue: Windows has been known for its horrendous typography since forever, alas!

from overtones.

meszaros-lajos-gyorgy avatar meszaros-lajos-gyorgy commented on June 11, 2024

I now see, that you load the font through google. I use this style for my fonts:

@font-face {
	font-family: 'monochord';
	src: url('../fonts/monochord/monochord.eot?67961079');
	src: url('../fonts/monochord/monochord.eot?67961079#iefix') format('embedded-opentype'),
	   url('../fonts/monochord/monochord.woff2?67961079') format('woff2'),
	   url('../fonts/monochord/monochord.woff?67961079') format('woff'),
	   url('../fonts/monochord/monochord.ttf?67961079') format('truetype'),
	   url('../fonts/monochord/monochord.svg?67961079#monochord') format('svg');
	font-weight: normal;
	font-style: normal;
}

The browser reads the urls from top to bottom and stops as soon as it finds any usable format as far as I know. Reordering the urls might bring improvement to some browsers.

from overtones.

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.