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

Style: New fonts in OpenPype style #2256

Merged
merged 8 commits into from
Nov 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions openpype/style/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,13 @@ def _load_font():
_FONT_IDS = []
fonts_dirpath = os.path.join(current_dir, "fonts")
font_dirs = []
font_dirs.append(os.path.join(fonts_dirpath, "Montserrat"))
font_dirs.append(os.path.join(fonts_dirpath, "Spartan"))
font_dirs.append(os.path.join(fonts_dirpath, "RobotoMono", "static"))
font_dirs.append(os.path.join(fonts_dirpath, "Noto_Sans"))
font_dirs.append(os.path.join(
fonts_dirpath,
"Noto_Sans_Mono",
"static",
"NotoSansMono"
))

loaded_fonts = []
for font_dir in font_dirs:
Expand Down
Binary file not shown.
Binary file not shown.
Binary file removed openpype/style/fonts/Montserrat/Montserrat-Bold.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed openpype/style/fonts/Montserrat/Montserrat-Thin.ttf
Binary file not shown.
Binary file not shown.
Binary file added openpype/style/fonts/Noto_Sans/NotoSans-Bold.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2020 The Spartan Project Authors (https://github.com/bghryct/Spartan-MB)
Copyright 2012 Google Inc. All Rights Reserved.

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2011 The Montserrat Project Authors (https://github.com/JulietaUla/Montserrat)
Copyright 2012 Google Inc. All Rights Reserved.

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
Expand Down
99 changes: 99 additions & 0 deletions openpype/style/fonts/Noto_Sans_Mono/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
Noto Sans Mono Variable Font
============================

This download contains Noto Sans Mono as both a variable font and static fonts.

Noto Sans Mono is a variable font with these axes:
wdth
wght

This means all the styles are contained in a single file:
NotoSansMono-VariableFont_wdth,wght.ttf

If your app fully supports variable fonts, you can now pick intermediate styles
that aren’t available as static fonts. Not all apps support variable fonts, and
in those cases you can use the static font files for Noto Sans Mono:
static/NotoSansMono_ExtraCondensed/NotoSansMono_ExtraCondensed-Thin.ttf
static/NotoSansMono_ExtraCondensed/NotoSansMono_ExtraCondensed-ExtraLight.ttf
static/NotoSansMono_ExtraCondensed/NotoSansMono_ExtraCondensed-Light.ttf
static/NotoSansMono_ExtraCondensed/NotoSansMono_ExtraCondensed-Regular.ttf
static/NotoSansMono_ExtraCondensed/NotoSansMono_ExtraCondensed-Medium.ttf
static/NotoSansMono_ExtraCondensed/NotoSansMono_ExtraCondensed-SemiBold.ttf
static/NotoSansMono_ExtraCondensed/NotoSansMono_ExtraCondensed-Bold.ttf
static/NotoSansMono_ExtraCondensed/NotoSansMono_ExtraCondensed-ExtraBold.ttf
static/NotoSansMono_ExtraCondensed/NotoSansMono_ExtraCondensed-Black.ttf
static/NotoSansMono_Condensed/NotoSansMono_Condensed-Thin.ttf
static/NotoSansMono_Condensed/NotoSansMono_Condensed-ExtraLight.ttf
static/NotoSansMono_Condensed/NotoSansMono_Condensed-Light.ttf
static/NotoSansMono_Condensed/NotoSansMono_Condensed-Regular.ttf
static/NotoSansMono_Condensed/NotoSansMono_Condensed-Medium.ttf
static/NotoSansMono_Condensed/NotoSansMono_Condensed-SemiBold.ttf
static/NotoSansMono_Condensed/NotoSansMono_Condensed-Bold.ttf
static/NotoSansMono_Condensed/NotoSansMono_Condensed-ExtraBold.ttf
static/NotoSansMono_Condensed/NotoSansMono_Condensed-Black.ttf
static/NotoSansMono_SemiCondensed/NotoSansMono_SemiCondensed-Thin.ttf
static/NotoSansMono_SemiCondensed/NotoSansMono_SemiCondensed-ExtraLight.ttf
static/NotoSansMono_SemiCondensed/NotoSansMono_SemiCondensed-Light.ttf
static/NotoSansMono_SemiCondensed/NotoSansMono_SemiCondensed-Regular.ttf
static/NotoSansMono_SemiCondensed/NotoSansMono_SemiCondensed-Medium.ttf
static/NotoSansMono_SemiCondensed/NotoSansMono_SemiCondensed-SemiBold.ttf
static/NotoSansMono_SemiCondensed/NotoSansMono_SemiCondensed-Bold.ttf
static/NotoSansMono_SemiCondensed/NotoSansMono_SemiCondensed-ExtraBold.ttf
static/NotoSansMono_SemiCondensed/NotoSansMono_SemiCondensed-Black.ttf
static/NotoSansMono/NotoSansMono-Thin.ttf
static/NotoSansMono/NotoSansMono-ExtraLight.ttf
static/NotoSansMono/NotoSansMono-Light.ttf
static/NotoSansMono/NotoSansMono-Regular.ttf
static/NotoSansMono/NotoSansMono-Medium.ttf
static/NotoSansMono/NotoSansMono-SemiBold.ttf
static/NotoSansMono/NotoSansMono-Bold.ttf
static/NotoSansMono/NotoSansMono-ExtraBold.ttf
static/NotoSansMono/NotoSansMono-Black.ttf

Get started
-----------

1. Install the font files you want to use

2. Use your app's font picker to view the font family and all the
available styles

Learn more about variable fonts
-------------------------------

https://developers.google.com/web/fundamentals/design-and-ux/typography/variable-fonts
https://variablefonts.typenetwork.com
https://medium.com/variable-fonts

In desktop apps

https://theblog.adobe.com/can-variable-fonts-illustrator-cc
https://helpx.adobe.com/nz/photoshop/using/fonts.html#variable_fonts

Online

https://developers.google.com/fonts/docs/getting_started
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide
https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/variable-fonts

Installing fonts

MacOS: https://support.apple.com/en-us/HT201749
Linux: https://www.google.com/search?q=how+to+install+a+font+on+gnu%2Blinux
Windows: https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows

Android Apps

https://developers.google.com/fonts/docs/android
https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts

License
-------
Please read the full license text (OFL.txt) to understand the permissions,
restrictions and requirements for usage, redistribution, and modification.

You can use them freely in your products & projects - print or digital,
commercial or otherwise.

This isn't legal advice, please consider consulting a lawyer and see the full
license for all details.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
202 changes: 0 additions & 202 deletions openpype/style/fonts/RobotoMono/LICENSE.txt

This file was deleted.

Loading