Skip to content

The double byte character calculating is not correct so the diagram's width is not fitting. #513

Closed

Activity

  1. alixander commented on Dec 24, 2022

    @alixander
    Collaborator

    i believe this is because the font we use does not support Hans characters, so the measurement will be off. I'm not sure it has anything to do with bytes

    I've created an issue for this:
    #517

  2. alixander commented on Dec 28, 2022

    @alixander
    Collaborator
  3. alixander commented on Dec 28, 2022

    @alixander
    Collaborator

    touché 🙂

  4. added this to the milestone on Dec 28, 2022
  5. bo-ku-ra commented on Jan 28, 2023

    @bo-ku-ra
    ContributorAuthor

    i am not good about golang
    is this possible? misdirected?

    func controlRune
    
    case unicode.Hiragana #japanese
    case unicode.Katakana #japanese
    case unicode.Han      #japanese and so on
    
    dot.X += Face.Metrics().Ascent.Floor() + Face.Metrics().Descent.Floor()
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions