racket / racket/draw

`draw-text` with `combine?` = `#t` missplaces diacritics.

Open
#22 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Racket
Stars
19
Forks
24
PR merge metrics
No merged PRs in 30d

Description

The combine? argument to draw-text seems to shift circumflexes one character space to the left. The program:

#lang racket
(require racket/draw)
(define (draw t combine?)
  (define b (make-object bitmap% 100 100))
  (define dc (send b make-dc))
  (send dc translate 20 20)
  (send dc scale 5 5)
  (send dc draw-text t 0 0 combine?)
  b)

Produces:

Screen Shot 2020-01-30 at 10 55 43 AM

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Run the provided Racket program and start at the racket/draw draw-text entry point, focusing on the combine? argument and circumflex positioning. Done means combined diacritics are drawn over the intended character rather than shifted one character to the left, while the shown reproduction remains otherwise unchanged.

Written by the indexing model from the issue text.

Assessment

Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.