Skip to content

Commit 459f906

Browse files
committed
feat: Make of jetbrains font in sora editor for better readability
1 parent ba41682 commit 459f906

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Join our discord server to keep contact us about Android Code Editor.
4949
- [ ] JSON
5050

5151
## Thanks to
52+
- [JetBrains](https://www.jetbrains.com) for [JetBrains font](https://www.jetbrains.com/lp/mono)
5253
- [bmelnychuk](https://github.com/bmelnychuk) for [AndroidTreeView](https://github.com/bmelnychuk/AndroidTreeView)
5354
- [tiagohm](https://github.com/tiagohm) for [MarkdownView](https://github.com/tiagohm/MarkdownView)
5455
- [Pictogrammers](https://pictogrammers.com/) for awsome icons
Binary file not shown.

editor/src/main/java/editor/tsd/editors/SoraEditor.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
import android.content.Context;
2121
import android.content.res.AssetManager;
22+
import android.graphics.Typeface;
2223
import android.view.ViewGroup;
2324
import editor.tsd.tools.Language;
2425
import editor.tsd.tools.Themes;
@@ -46,7 +47,8 @@ public SoraEditor(Context context) {
4647
ViewGroup.LayoutParams codeEditor_LayoutParams =
4748
new ViewGroup.LayoutParams(
4849
ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
49-
50+
Typeface font = Typeface.createFromAsset(context.getAssets(), "Editor/SoraEditor/jetbrains.ttf");
51+
editor.setTypefaceText(font);
5052
editor.setLayoutParams(codeEditor_LayoutParams);
5153
}
5254

0 commit comments

Comments
 (0)