Comments (6)
I'm running macOS 10.14.13, running a Racket head from a few days ago.
from draw.
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.
Wikipedia suggests that 10.14.6 is the latest version of 10.14: https://en.wikipedia.org/wiki/MacOS_Mojave
from draw.
Is this related to "Unicode Acents in DrRacket" racket/drracket#46 ?
from draw.
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
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)
Which is to say it draws the completely wrong character!
from draw.
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)
- get-recorded-procedure on record-dc seems to drop `set-clipping-rect`
- Pango warning printed out in Racket 7.6 CS
- Is it possible to display bitmap in a loop? HOT 1
- [Feature Request] Add draw-circle and draw-square methods to dc<%> in racket/draw HOT 1
- Pango AppKit workaround for CS and/or Aarch64? HOT 1
- Should guard-foreign-escape use `#:callback-exns?`? HOT 1
- Emoji error when using macro stepper HOT 1
- A font% does not contain the leading
- Rotation and draw-text. HOT 7
- Rotating circles HOT 1
- memcpy given #<eof> in read-png-bytes HOT 3
- Possible bug? HOT 1
- get-text-extent errors for a bitmap-dc% object without a bitmap installed HOT 1
- Odd baseline for text drawn with `'swiss` on when that means Nimbus Sans HOT 1
- Bugs caused by internally constructed objects
- Internal error when getting pen% and brush% color
- racket/draw draw-text ignores kerning HOT 6
- [Feature Request] draw font% does not expose kerning
- manual class sections lack a <h3> title
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from draw.