mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
added LiberationSans font to resources
This commit is contained in:
parent
d3aa437066
commit
aff94de43b
6 changed files with 94 additions and 1 deletions
|
|
@ -10,12 +10,28 @@ def get_resource(*args):
|
|||
"""
|
||||
return os.path.normpath(
|
||||
os.path.join(
|
||||
os.path.dirname(__file__),
|
||||
os.path.dirname(os.path.abspath(__file__)),
|
||||
*args
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
def get_liberation_font_path(bold=False, italic=False):
|
||||
font_name = "LiberationSans"
|
||||
suffix = ""
|
||||
if bold:
|
||||
suffix += "Bold"
|
||||
if italic:
|
||||
suffix += "Italic"
|
||||
|
||||
if not suffix:
|
||||
suffix = "Regular"
|
||||
|
||||
filename = "{}-{}.ttf".format(font_name, suffix)
|
||||
font_path = get_resource("fonts", font_name, filename)
|
||||
return font_path
|
||||
|
||||
|
||||
def pype_icon_filepath(debug=None):
|
||||
if debug is None:
|
||||
debug = bool(os.getenv("PYPE_DEV"))
|
||||
|
|
|
|||
BIN
pype/resources/fonts/LiberationSans/LiberationSans-Bold.ttf
Normal file
BIN
pype/resources/fonts/LiberationSans/LiberationSans-Bold.ttf
Normal file
Binary file not shown.
Binary file not shown.
BIN
pype/resources/fonts/LiberationSans/LiberationSans-Italic.ttf
Normal file
BIN
pype/resources/fonts/LiberationSans/LiberationSans-Italic.ttf
Normal file
Binary file not shown.
BIN
pype/resources/fonts/LiberationSans/LiberationSans-Regular.ttf
Normal file
BIN
pype/resources/fonts/LiberationSans/LiberationSans-Regular.ttf
Normal file
Binary file not shown.
77
pype/resources/fonts/LiberationSans/License.txt
Normal file
77
pype/resources/fonts/LiberationSans/License.txt
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
LICENSE AGREEMENT AND LIMITED PRODUCT WARRANTY LIBERATION FONT SOFTWARE
|
||||
This agreement governs the use of the Software and any updates to the
|
||||
Software, regardless of the delivery mechanism. Subject to the following
|
||||
terms, Red Hat, Inc. ("Red Hat") grants to the user ("Client") a license to
|
||||
this collective work pursuant to the GNU General Public License v.2 with the
|
||||
exceptions set forth below and such other terms as our set forth in this End
|
||||
User License Agreement.
|
||||
1. The Software and License Exception. LIBERATION font software (the
|
||||
"Software") consists of TrueType-OpenType formatted font software for
|
||||
rendering LIBERATION typefaces in sans serif, serif, and monospaced character
|
||||
styles. You are licensed to use, modify, copy, and distribute the Software
|
||||
pursuant to the GNU General Public License v.2 with the following exceptions:
|
||||
1) As a special exception, if you create a document which uses this font, and
|
||||
embed this font or unaltered portions of this font into the document, this
|
||||
font does not by itself cause the resulting document to be covered by the GNU
|
||||
General Public License. This exception does not however invalidate any other
|
||||
reasons why the document might be covered by the GNU General Public License.
|
||||
If you modify this font, you may extend this exception to your version of the
|
||||
font, but you are not obligated to do so. If you do not wish to do so, delete
|
||||
this exception statement from your version.
|
||||
|
||||
2) As a further exception, any distribution of the object code of the Software
|
||||
in a physical product must provide you the right to access and modify the
|
||||
source code for the Software and to reinstall that modified version of the
|
||||
Software in object code form on the same physical product on which you
|
||||
received it.
|
||||
2. Intellectual Property Rights. The Software and each of its components,
|
||||
including the source code, documentation, appearance, structure and
|
||||
organization are owned by Red Hat and others and are protected under copyright
|
||||
and other laws. Title to the Software and any component, or to any copy,
|
||||
modification, or merged portion shall remain with the aforementioned, subject
|
||||
to the applicable license. The "LIBERATION" trademark is a trademark of Red
|
||||
Hat, Inc. in the U.S. and other countries. This agreement does not permit
|
||||
Client to distribute modified versions of the Software using Red Hat's
|
||||
trademarks. If Client makes a redistribution of a modified version of the
|
||||
Software, then Client must modify the files names to remove any reference to
|
||||
the Red Hat trademarks and must not use the Red Hat trademarks in any way to
|
||||
reference or promote the modified Software.
|
||||
3. Limited Warranty. To the maximum extent permitted under applicable law, the
|
||||
Software is provided and licensed "as is" without warranty of any kind,
|
||||
expressed or implied, including the implied warranties of merchantability,
|
||||
non-infringement or fitness for a particular purpose. Red Hat does not warrant
|
||||
that the functions contained in the Software will meet Client's requirements
|
||||
or that the operation of the Software will be entirely error free or appear
|
||||
precisely as described in the accompanying documentation.
|
||||
4. Limitation of Remedies and Liability. To the maximum extent permitted by
|
||||
applicable law, Red Hat or any Red Hat authorized dealer will not be liable to
|
||||
Client for any incidental or consequential damages, including lost profits or
|
||||
lost savings arising out of the use or inability to use the Software, even if
|
||||
Red Hat or such dealer has been advised of the possibility of such damages.
|
||||
5. Export Control. As required by U.S. law, Client represents and warrants
|
||||
that it: (a) understands that the Software is subject to export controls under
|
||||
the U.S. Commerce Department's Export Administration Regulations ("EAR"); (b)
|
||||
is not located in a prohibited destination country under the EAR or U.S.
|
||||
sanctions regulations (currently Cuba, Iran, Iraq, Libya, North Korea, Sudan
|
||||
and Syria); (c) will not export, re-export, or transfer the Software to any
|
||||
prohibited destination, entity, or individual without the necessary export
|
||||
license(s) or authorizations(s) from the U.S. Government; (d) will not use or
|
||||
transfer the Software for use in any sensitive nuclear, chemical or biological
|
||||
weapons, or missile technology end-uses unless authorized by the U.S.
|
||||
Government by regulation or specific license; (e) understands and agrees that
|
||||
if it is in the United States and exports or transfers the Software to
|
||||
eligible end users, it will, as required by EAR Section 740.17(e), submit
|
||||
semi-annual reports to the Commerce Department's Bureau of Industry & Security
|
||||
(BIS), which include the name and address (including country) of each
|
||||
transferee; and (f) understands that countries other than the United States
|
||||
may restrict the import, use, or export of encryption products and that it
|
||||
shall be solely responsible for compliance with any such import, use, or
|
||||
export restrictions.
|
||||
6. General. If any provision of this agreement is held to be unenforceable,
|
||||
that shall not affect the enforceability of the remaining provisions. This
|
||||
agreement shall be governed by the laws of the State of North Carolina and of
|
||||
the United States, without regard to any conflict of laws provisions, except
|
||||
that the United Nations Convention on the International Sale of Goods shall
|
||||
not apply.
|
||||
Copyright © 2007 Red Hat, Inc. All rights reserved. LIBERATION is a trademark
|
||||
of Red Hat, Inc.
|
||||
Loading…
Add table
Add a link
Reference in a new issue