sublime_text icon indicating copy to clipboard operation
sublime_text copied to clipboard

Unicode Text not Rendering in mac

Open MayuraVerma opened this issue 6 years ago • 10 comments

Description

Unicode Kannada text is not rendering correctly in Sublime Text editor.

Steps to reproduce

Create a python test file with below lines.

print('ಕನ್ನಡ ')
print('ನನ್ನನ್ನು', 'ನಿನ್ನನ್ನು', 'ಏನನ್ನು', 'ನನ್ನ')

and run the above print statements

Expected behavior

Expected behavior in sublime Editor image

Expected behavior in output window, similar to output in terminal window image

Actual behavior

Broken text. Sublime text editor is not applying opentype features 'GSUB' and 'GPOS'. I think the sublime editor is not linking shaping engine.

Harfbuzz shaping engine is preferred over Apple Coretext engine in mac.

image

Environment

  • Build: 3207
  • Operating system and version: macOS 10.14.6 (18G95)

MayuraVerma avatar Sep 08 '19 05:09 MayuraVerma

Can you provide the literal text in a comment here?

Does Safari render the text properly?

We don't currently have a plan on switching from CoreText to Harfbuzz.

wbond avatar Sep 08 '19 11:09 wbond

Looks like this on Linux fwiw:

2019-09-08_15-40-16

FichteFoll avatar Sep 08 '19 13:09 FichteFoll

Text: print('ಕನ್ನಡ ') print('ನನ್ನನ್ನು', 'ನಿನ್ನನ್ನು', 'ಏನನ್ನು', 'ನನ್ನ')

Safari has no problem rendering this text.

image

MayuraVerma avatar Sep 08 '19 14:09 MayuraVerma

ಕನ್ನಡ ನನ್ನನ್ನು ನಿನ್ನನ್ನು ನನ್ನ

MayuraVerma avatar Sep 08 '19 15:09 MayuraVerma

image

MayuraVerma avatar Sep 08 '19 15:09 MayuraVerma

most Kannada fonts uses

GSUB features: nukt, akhn, rphf, blwf, half, abvs, blws, blws, psts, haln, pres

GPOS features: blwm, dist

Please support these Opentype features.

MayuraVerma avatar Sep 08 '19 18:09 MayuraVerma

For me the space towards the end of the first line doesn't show.

image
Sublime Text:
  build: 4056
  channel: dev
  portable: false
  platform: macOS 10.15.1 (19B88)
  hardware: MBP 15" 2018, i9 2.9GHz, 32GB, 1TB, Radeon Pro 560X
  open_gl:
    GL API Version: 4.1 INTEL-14.2.16
    GLSL Version: 4.10
    Vendor: Intel Inc.
    Renderer: Intel(R) UHD Graphics 630

jrappen avatar Nov 27 '19 17:11 jrappen

@jrappen it’s definitely shaping engine issue

MayuraVerma avatar Nov 27 '19 17:11 MayuraVerma

@wbond This appears to be the same issue I reported earlier today on SublimeHQ Discord

jrappen avatar Nov 27 '19 17:11 jrappen

Any changes to this issue?

MayuraVerma avatar Oct 10 '22 21:10 MayuraVerma