Automattic / Automattic/node-canvas

Shifted font vowels for Khmer

Open
#968 3 comments 1 reaction 0 assignees View on GitHub
Text & Fonts
Dominant language
JavaScript
Stars
10.7k
Forks
1.2k
Avg merge
4d 8h
Merged PRs (30d)
1

Description

## Issue
Hello guys, first thanks for the awesome work. I have an issue with Khmer font, with or without a custom font (font is unicode and available on Google fonts `Hanuman-Regular.ttf`)

The top and bottom vowels are all shifted to the left as the screen shot below.

![image](https://user-images.githubusercontent.com/712558/29561003-143d001c-875e-11e7-83dc-8c9985149e01.png)

Hope you can help.

## Steps to Reproduce
```
ctx.fillText('Khmer: សូមអរគុណពីហ្គីកូខេមបូឌ', 10, 90)
```
Above, the fillText is displaying the vowels correctly (សូមអរគុណពីហ្គីកូខេមបូឌ) on github as utf-8, my file is encoded as utf-8, the output from fillText seems to have an issue aligning them.

## Your Environment
* node-canvas 2.x

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.