Code Monkey home page Code Monkey logo

Comments (6)

florence avatar florence commented on July 19, 2024

I'm running macOS 10.14.13, running a Racket head from a few days ago.

from draw.

florence avatar florence commented on July 19, 2024

This is not a regression from 7.5.
The exact UTF-8 bytestring I'm using for is "p̂" is #"p\314\202".

from draw.

rfindler avatar rfindler commented on July 19, 2024

Wikipedia suggests that 10.14.6 is the latest version of 10.14: https://en.wikipedia.org/wiki/MacOS_Mojave

from draw.

gus-massa avatar gus-massa commented on July 19, 2024

Is this related to "Unicode Acents in DrRacket" racket/drracket#46 ?

from draw.

florence avatar florence commented on July 19, 2024

It might be. From what I can tell drracket always uses combine as #f (judging by grepping the framework and drracket codebase)

An interesting note some fonts have special liggatures for diacritics, and that effect the behavior here. For example Futura has a diacritic for  but not p̂. The code:

(scale
 (vl-append
  (text "pp̂" (cons 'combine "Futura"))
  (text "pp̂" (cons 'no-combine "Futura"))
  (text "pÂ" (cons 'combine "Futura"))
  (text "pÂ" (cons 'no-combine "Futura")))
 3)

Renders

Screen Shot 2020-02-14 at 10 19 23 AM

Which is to say, this only goes wrong if there is no ligature for the combined glyph.

But more bizzarly, if I switch to inconsolata, which has the same ligature set for this diacritic I get:

(scale
 (vl-append
  (text "pp̂" (cons 'combine "Inconsolata"))
  (text "pp̂" (cons 'no-combine "Inconsolata"))
  (text "pÂ" (cons 'combine "Inconsolata"))
  (text "pÂ" (cons 'no-combine "Inconsolata")))
 3)

Screen Shot 2020-02-14 at 10 58 26 AM

Which is to say it draws the completely wrong character!

from draw.

florence avatar florence commented on July 19, 2024

this issue might be related to this pango bug (https://bugzilla.gnome.org/show_bug.cgi?id=584160)?

Specifically this comment https://bugzilla.gnome.org/show_bug.cgi?id=584160#c75 makes me think so.

from draw.

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.