Coder Social home page Coder Social logo

Comments (11)

benlesh avatar benlesh commented on May 6, 2024 1

Looking at Unifont, it might be infeasible to use it as a web font. The TTF file is about 12MB. You can probably use a conversion tool that extracts out the characters you need, however.

Either way, the problem is definitely the font. Find the right monospaced web font and you'll solve the issue.

from wttr.in.

benlesh avatar benlesh commented on May 6, 2024

It seems to be that the unicode characters, such as "degree" and the arrow-type characters don't keep the monospaced widths, and therefor alter the alignment.

from wttr.in.

benlesh avatar benlesh commented on May 6, 2024

Switching the font to GNU Unifont solves the misalignment issues. You'll need to use a @font-face directive in CSS in order to do so, but the result looks much better:

screen shot 2016-03-31 at 11 30 41 am

from wttr.in.

Artanicus avatar Artanicus commented on May 6, 2024

For OS X the fix was indeed using Menlo and for Linux the fix was using DejaVu Sans Mono font-family. Letting it fall back to monospace makes everything unpredictable with so many bad monospace fonts around. DejaVu Sans Mono also fixed the unicode misalignment issue for ChromeOS.

I've seen Consolas recommended for Windows but cannot confirm as I don't have Windows to test with.

from wttr.in.

chubin avatar chubin commented on May 6, 2024

It should work better in Mac OS X / iOS (and probably Windows) now (see #68).
Please test and report, if there are still problems with these and other problems.
As far as I see, there are still problems with Android at least.

from wttr.in.

Artanicus avatar Artanicus commented on May 6, 2024

So, aftermath of #68 is that we have OS provided good monospace fonts for the following:

  • Mac OS X & iOS: Menlo
  • Linux & ChromeOS: DejaVu Sans Mono
  • There's several contenders for the best Windows font.
  • The biggest remaining issue is Android. Next step is to figure out what monospace fonts does vanilla Android ship with, and hopefully one of them is good.

from wttr.in.

chubin avatar chubin commented on May 6, 2024

How it looks like in iOS now:

from wttr.in.

chubin avatar chubin commented on May 6, 2024

It looks really ugly in windows:

https://twitter.com/Noooooovik/status/832190050297376768

@Artanicus @Blesh If you have any ideas what fonts could be tried on Windows please give your suggestions

from wttr.in.

Nimja avatar Nimja commented on May 6, 2024

Hmm.. Apparently nobody cares anymore?

from wttr.in.

chubin avatar chubin commented on May 6, 2024

@Nimja Actually the users do care, but the problem is still there. Do you have any idea about the font?

from wttr.in.

Nimja avatar Nimja commented on May 6, 2024

I'm closing this for now, ticket has been open for 3.5 years ;)

from wttr.in.

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.