GithubHelp home page GithubHelp logo

Comments (12)

Seasawher avatar Seasawher commented on August 23, 2024 1

All I had to do was change the browser font myself... Sorry, I didn't realise that.

from lean4web.

joneugster avatar joneugster commented on August 23, 2024 1

It would be very reasonable to have a reasonable default font!

(not google though, I believe there is something about google fonts not bein GDPR conform or some nonesense like that)

from lean4web.

joneugster avatar joneugster commented on August 23, 2024 1

On my end it looks very reasonable, doesn't it?

CSS says: font-family: "Droid Sans Mono", "monospace", monospace

Do you think it would be satisfactory to just ship "droid sans mono" together with the bundle?

Screenshot_20240423_092520

from lean4web.

joneugster avatar joneugster commented on August 23, 2024 1

I realised that 'Droid Sans Mono' was just a random font on my computer. I did change the editor to use JuliaMono now.

Could you test at https://lean.math.hhu.de/ and see if it all looks good @Seasawher ?

from lean4web.

joneugster avatar joneugster commented on August 23, 2024 1

In the image above, the cursor is shown as being in the middle of the line, but it actually exists at the end of the line.

I cannot reproduce this on my end. Could it be some local (CSS) caching? If it persists, please open a new issue about it!

Regarding "点" , reading the linked issue, I think we just need to update the font in a few weeks.

from lean4web.

Seasawher avatar Seasawher commented on August 23, 2024 1

I think this issue itself has been resolved.

from lean4web.

Seasawher avatar Seasawher commented on August 23, 2024

Not everyone can conceive of installing a font and changing the settings in their browser. Wouldn't it be nice to choose a font that displays Unicode readably by default?

from lean4web.

Seasawher avatar Seasawher commented on August 23, 2024

My mother tongue is Japanese and I usually use the font Juisee for Lean.

See https://github.com/yuru7/juisee

It would be preferable if this could be made convenient for non-English speakers.

from lean4web.

joneugster avatar joneugster commented on August 23, 2024

I'd happily accept a PR that adds the correct fonts. working on it right now :)

Currently Mac-users also have a hard time because for most of them it does not load a mono-space font.

from lean4web.

Seasawher avatar Seasawher commented on August 23, 2024

Sorry, I don't know how to install Droid Sans Mono and can't try it myself.

Looks good, but do the Unicode symbols used in mathematics show up clearly?

from lean4web.

Seasawher avatar Seasawher commented on August 23, 2024

Thanks for the quick response. I have tested it.

I found a problem:

When you try to define longlonglong....name, there was a problem with the cursor "lagging" behind the displayed character.

longname_font

In the image above, the cursor is shown as being in the middle of the line, but it actually exists at the end of the line.

see https://lean.math.hhu.de/#code=def%20longlonglonglonglonglonglonglonglongname%20%3A%3D%22hoge%22%0D%0A%0D%0A

from lean4web.

Seasawher avatar Seasawher commented on August 23, 2024

I found another problem... I think this is a bug in Julia Mono rather than in Lean4 Web, but the kanji character for "点" (which means "dot") is displayed incorrectly.

image

see: cormullion/juliamono#206

from lean4web.

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.