sublime_text icon indicating copy to clipboard operation
sublime_text copied to clipboard

Multiple Font face

Open MayuraVerma opened this issue 5 years ago • 12 comments

Description

Sublime text is not allowing multiple type font faces. As we all know, There is no single font face that supports all languages in the world. If we are working with non-latin text, we need at least two font faces. latin for all the commands different font face for say Kannada.

Steps to reproduce

In the settings, please add two font face

"font_face": "Source Code Pro, Noto Sans Kannada"

or

"font_face": "'Source Code Pro', 'Noto Sans Kannada'"

or

"font_face": "Source Code Pro", "Noto Sans Kannada"

Both will fail

Expected behavior

ability to add multiple font faces. Sublime text should pick up the font face in the order of input. If there Latin text, it should look if latin in support in the first font, if not try second, .... then finally fall back to system default font. Same thing should be done for other language, in this example Kannada. If not Kannada is not supported in "Source Code Pro", then it should "Noto Sans Kannada", before fall backing to system default.

A description of what you expected to happen.

Actual behavior

Sublime text allows only one font face.

Environment

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

MayuraVerma avatar Sep 08 '19 18:09 MayuraVerma

Is your OS Windows 10? The 10.14.6 (18G95) is a bit undescriptive.

andrijajocic avatar Sep 08 '19 18:09 andrijajocic

related, albeit specifically mentioning Windows: https://github.com/SublimeTextIssues/Core/issues/2795, https://github.com/SublimeTextIssues/Core/issues/2307

keith-hall avatar Sep 08 '19 18:09 keith-hall

@salty-biscuits Its mac os 10.14.6 (18G95)

MayuraVerma avatar Sep 08 '19 19:09 MayuraVerma

@MayuraVerma in your steps to reproduce the third option is invalid json, you probably meant:

//  Packages/User/Preferences.sublime-settings

{
    "font_face":
    [
        "Source Code Pro",
        "Noto Sans Kannada"
    ]
}

jrappen avatar Nov 27 '19 17:11 jrappen

@wbond May you please look into this request?

ATAKing1023 avatar Sep 16 '21 02:09 ATAKing1023

@BenjaminSchaaf

ATAKing1023 avatar Sep 16 '21 02:09 ATAKing1023

Please stop randomly pinging users.

jrappen avatar Sep 16 '21 11:09 jrappen

Would this be implemented in near future?

phoenixgao avatar Dec 17 '21 02:12 phoenixgao

I would like to go a step further, and propose multiple font support to be implemented based on code point range: Use one font by default, up to and including, let's say, Latin Extended-B (U+0000 - U+024F) and another font for e.g. Greek and Coptic (U+0370 - U+03FF) etc.

Unfortunately one font size does not fit all, i.e. does not always support all the required glyphs. Creating a custom font that does is a) a real PITA and b) very often not allowed due to licensing issues.

igreil avatar May 04 '22 16:05 igreil

Is your OS Windows 10? The 10.14.6 (18G95) is a bit undescriptive. Environment Build: 3207 Operating system and version: mac os 10.14.6 (18G95)

MayuraVerma avatar May 16 '22 21:05 MayuraVerma

Multiple fonts based on a color scheme / syntax would be nice as well. Much like italics or bold, being able to change the font_face and font_size for a syntax would be amazing, much like a CSS style setup.

Emacs supports this sort of thing and it has been used for a ton of really beautiful features.

ihdavids avatar Jul 19 '22 06:07 ihdavids

Any changes to this issue?

MayuraVerma avatar Oct 10 '22 21:10 MayuraVerma

I've met the same problem. Is there a solution? And why is the issue closed?

ZJsheep avatar Dec 22 '22 09:12 ZJsheep

The issue is still open.

deathaxe avatar Dec 22 '22 09:12 deathaxe

Looking forward to any progress on this feature

a1waysbeta avatar Dec 22 '22 10:12 a1waysbeta

Would be great to support font per syntax highlight type.

dmilith avatar Dec 26 '22 20:12 dmilith

Looking forward to any progress on this feature.

csJd avatar Aug 25 '23 07:08 csJd

Looking forward to any progress on this feature.

ao7777 avatar Sep 26 '23 02:09 ao7777