Code Monkey home page Code Monkey logo

font-style-matcher's Introduction

font-style-matcher

If you're using a web font, you're bound to see a flash of unstyled text (or FOUC), between the initial render of your websafe font and the webfont that you've chosen.

This usually results in a jarring shift in layout, due to sizing discrepancies between the two fonts. To minimize this discrepancy, you can try to match the fallback font and the intended webfont’s x-heights and widths [1].

This tool helps you do exactly that.

fouc

font-style-matcher's People

Contributors

alitorbati avatar gcmznt avatar iamvdo avatar jakearchibald avatar justmarkup avatar kjmahoney avatar nico avatar notwaldorf avatar shidhincr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

font-style-matcher's Issues

Automatic Font Matching

I have used the tool quite often now and at some point I could not decide, which settings would fit better, just by looking at it.

I made a small tool that helps you do that (at least for letter-spacing and word-spacing).

Maybe there is some more people using this that thought about something like that already.

https://dazlious.github.io/font-matcher/

FR: Custom font loading (from Typekit etc.)

This is a cool idea but not every new project uses a font available from Google Fonts.

I think it would make sense to be able to include a custom header html to load a font from e.g. Typekit or similar font services.

feature: change dummy text

First of all: great tool! Good for working on FOUT issues :)

But one thing I'm really missing is a comfortable way (instead of the dev tools) to adjust the dummy text ('The fox jumped...').
So for example a textarea to define a custom dummy text.

This is really useful if optimizing a certain language or to test certain headlines.

@notwaldorf can such a feature be added?

feature_request(enhancement): font-style support

1. Summary

It would be nice, if Font style matcher will support font-style CSS property.

2. Argumentation

Web developers may use italic or oblique font faces as in this example:

a
    font-family "El Messiri", "Trebuchet MS", Helvetica, sans-serif
    font-size 1.3rem
    font-style italic
    font-weight bold

Currently, in Font Style Matcher we can’t see how exactly will look in this case web font El Messiri and fallback fonts.

Thanks.

Display - font loaded / error when the font you typed is not loaded

Right now when you type in a font you don't get any feedback if the font you typed is loaded or not. Since fonts change while still typing the name in, there could be times when people think they got the right font while in fact they got another font that has a part of the same name.

For example: If there is a font called Aria, you type in Aria but its actually loading Arial.
1: You don't see an error that "Aria" is not loaded
2: You don't see which font is loaded so you don't see that you got the wrong font except for esthetics of the font itself.

Also why is Trebuchet MS not working?

Unitless line-height

I'll try and do a PR for this when I have some time!


It would be great if the line-height could be switched to unitless (e.g 1.4), however, I'm not sure if this is just me though!

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.