Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Add Droid Sans Mono for rendering Unicode (Greek, Cyrillic) #11156

Closed
wants to merge 1 commit into from

Conversation

marcelgerber
Copy link
Contributor

Including this font will make #3465 way better.

Why I chose Droid Sans Mono:

  • One of the most widely used Google Fonts > 26,000,000 views this week
  • Supports pretty much all Unicode characters
  • Looks good
  • Same size SourceCodePro-Medium has (from what I can tell)
  • It's a monospace font
  • Licensed under Apache License 2.0 (hope it's compatible with MIT; I'm not a license expert)

Google Fonts page, Typecast Demo

Screenshots:
With Greek text, mixed with normal HTML:
image
(Demo text: Ατ σιθ σαυσαε φοσιβυς τινσιδυνθ, πρι ιν μαγνα θεμπορ δετερρυισεθ. Ιν κυι κυανδο ωμιτθαμ, εα μεα θαμκυαμ εφφισιενδι. Ειυς κυανδο κυαεκυε ιδ εσθ, σωνσυλ απειριαν δυο ιδ. Φελ φοσεντ κυαερενδυμ αδ. Νονυμες ρεπρεχενδυντ ει μεα.)

With Cyrillic text, mixed with normal HTML:
image
(Demo text: Ючю амэт долорэж эи, экз дикунт мэнандря трактатоз кюм. Экз жят доминг маиорюм. Мюнырэ жямиляквюы эффякиантур векж йн. Ед орнатюс ныкэжчятатябюз векж, ыам ты одео факёльиси адолэжкэнс. Шапэрэт позтюлант векж но.)

As better support for Greek/Cyrillic text is often-requested, I think this is a good undertaking.

@abose
Copy link
Contributor

abose commented May 23, 2015

The font would come into play only if source-sans-pro doesn't have gliffs for the particular unicode text right?

@abose abose added this to the Release 1.4 milestone May 23, 2015
@abose
Copy link
Contributor

abose commented May 23, 2015

I think we should consider Greek,Crillic font issue this release as we have seen a lot of issues in this area; and considering the fact that we have a substantial user base from Russia. marking this for 1.4.

@marcelgerber
Copy link
Contributor Author

Yep, all latin text is still displayed with SourceCodePro.

This would go well together with #8985, which improves Greek/Cyrillic support for the non-editor UI. Maybe we can mark it 1.4, too?

@abose abose self-assigned this May 23, 2015
@abose
Copy link
Contributor

abose commented May 23, 2015

These two could go independently; but Lets target that too for completeness 👍

@abose
Copy link
Contributor

abose commented May 28, 2015

Update on this: Adobe's type team has informed me that they are extending source code pro to include Greek/Cyrillic support as required by brackets.
@marcelgerber Do you find any other issues that need to be addressed in source code pro ?

@abose
Copy link
Contributor

abose commented May 28, 2015

@marcelgerber
Copy link
Contributor Author

Is there any ETA on the release? I mean, the comment you linked too is from last December and yet, there's still no release (and the files are apparently not even uploaded to GitHub yet).

I really don't know whether we need other character sets as well. There are obviously many characters Source Code Pro doesn't support (I haven't specifically looked for them, but probably Arabic, Hebrew, Persian, ...), but I don't know how bad they look without font support.

@abose
Copy link
Contributor

abose commented May 30, 2015

I had a discussion with the fonts group at adobe and this is what i got from them:

  1. brackets font set has MS Gothic (a Japanese font) in both its localized and English name forms in our fallback set – but MS Gothic is not available for bundling, so we’re counting on it being present on the local device. The fonts team suggested integrating the Source Han Sans family . Like Source Sans it’s targeted at on-screen text, and would harmonize well with Source Code and remove this dependency on local fonts. Unlike MS Gothic, it could provide support for not only Japanese but also Korean and both forms of Chinese. We are in discussion to get these fonts too ". Adobe fonts would deliver source hans font if we are to go ahead with that.
  2. reg source code pro: "The Greek & Cyrillic extensions are in beta condition, and we think it would be ideal for Brackets to incorporate these, give us any feedback you may have, and swap in the final versions when the fonts reach GM."
  3. Also they said this
    the open source version of Droid Sans Mono only includes a basic Latin character set. The expanded character set which include Cyrillic and Greek (Droid Sans Mono WGL, http://www.fonts.com/font/ascender/droid-sans-mono) is only available as a commercial license -- and therefore cannot be bundled in Adobe software, and certainly not in open source software.

@marcelgerber
Copy link
Contributor Author

That sounds great! I didn't know fonts had beta phases... The more you know 😄

Regarding MS Gothic/MS ゴシック, though:
That's the font that currently renders our Cyrillic/Greek text, but it has big letter spacing and is by no means monospace (see this screenshot).

That thing about Droid Sans Mono is strange. I got my copy - with Cyrillic/Greek support - from https://www.google.com/fonts/specimen/Droid+Sans+Mono, where they explicitly state it's under the Apache License 2.0.

@abose
Copy link
Contributor

abose commented May 30, 2015

:) i too saw the apache license thing;. I'll keep this thread updated.

@abose
Copy link
Contributor

abose commented Jun 23, 2015

@marcelgerber I have added the latest fonts in this PR #11301 .

@marcelgerber
Copy link
Contributor Author

Closing in favor of #11301.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants