Skip to content
\n

How can we render the unicode string? What would be a proper algorithm?

\n
x = start_x\ny = start_y\nwith all glyph elements ge in the vector:\n  print unicode ge.g at x,y\n  x = x + ge.ax\n  y = y + ge.ay\n
\n

At least the above algorithm does not lead to a proper result. It looks more like this (first row):
\n\"pic0000\"

\n

Also the scaling of ax and ay is not clear (in the screenshot ax/ay are divided by 4)

\n

Edit: Fixed algorithm

","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

You are spot on.

\n

I don't know your system. You can connect back to the Unicode via the cluster cl member of the json. See:

\n

https://harfbuzz.github.io/clusters.html

","upvoteCount":0,"url":"https://github.com/harfbuzz/harfbuzz/discussions/5362#discussioncomment-13455236"}}}

How to interpret the JSON output of hb-shape commandline tool? #5362

Answered by behdad
olikraus asked this question in Q&A
Discussion options

You must be logged in to vote

You are spot on.

I don't know your system. You can connect back to the Unicode via the cluster cl member of the json. See:

https://harfbuzz.github.io/clusters.html

Replies: 1 comment 22 replies

Comment options

You must be logged in to vote
22 replies
@olikraus
Comment options

@olikraus
Comment options

@olikraus
Comment options

@behdad
Comment options

Answer selected by olikraus
@olikraus
Comment options

@olikraus
Comment options

@behdad
Comment options

@olikraus
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants