mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-08 04:28:41 +00:00
chore: move test fonts to the main repo (#2834)
Co-authored-by: Kevin Barabash <kevinb@khanacademy.org>
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -1,6 +1,3 @@
|
|||||||
[submodule "submodules/katex-fonts"]
|
[submodule "submodules/katex-fonts"]
|
||||||
path = submodules/katex-fonts
|
path = submodules/katex-fonts
|
||||||
url = https://github.com/KaTeX/katex-fonts
|
url = https://github.com/KaTeX/katex-fonts
|
||||||
[submodule "submodules/katex-test-fonts"]
|
|
||||||
path = submodules/katex-test-fonts
|
|
||||||
url = https://github.com/KaTeX/katex-test-fonts.git
|
|
||||||
|
Submodule submodules/katex-test-fonts deleted from 371f4a7947
11
test/screenshotter/fonts/batang/LICENSE
Normal file
11
test/screenshotter/fonts/batang/LICENSE
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
Copyright (c) 1986-2002 Kim Jeong-Hwan
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Permission to use, copy, modify and distribute this font is
|
||||||
|
hereby granted, provided that both the copyright notice and
|
||||||
|
this permission notice appear in all copies of the font,
|
||||||
|
derivative works or modified versions, and that the following
|
||||||
|
acknowledgement appear in supporting documentation:
|
||||||
|
Baekmuk Batang, Baekmuk Dotum, Baekmuk Gulim, and
|
||||||
|
Baekmuk Headline are registered trademarks owned by
|
||||||
|
Kim Jeong-Hwan.
|
BIN
test/screenshotter/fonts/batang/batang.ttf
Normal file
BIN
test/screenshotter/fonts/batang/batang.ttf
Normal file
Binary file not shown.
170
test/screenshotter/fonts/mincho/LICENSE
Normal file
170
test/screenshotter/fonts/mincho/LICENSE
Normal file
@@ -0,0 +1,170 @@
|
|||||||
|
IPA FONT LICENSE AGREEMENT V1.0
|
||||||
|
|
||||||
|
The Licensor provides the Licensed Program (as defined in Article 1 below) under
|
||||||
|
the terms of this license agreement (“Agreement”). Any use, reproduction or
|
||||||
|
distribution of the Licensed Program, or any exercise of rights under this
|
||||||
|
Agreement by a Recipient (as defined in Article 1 below) constitutes the
|
||||||
|
Recipient’s acceptance of this Agreement.
|
||||||
|
|
||||||
|
|
||||||
|
Article 1 (Definitions)
|
||||||
|
|
||||||
|
1. “Digital Font Program” shall mean
|
||||||
|
a computer program containing, or used to render or display fonts.
|
||||||
|
|
||||||
|
2. “Licensed Program” shall mean a
|
||||||
|
Digital Font Program licensed by the Licensor under this Agreement.
|
||||||
|
|
||||||
|
3. “Derived Program” shall mean a Digital Font Program created as a result of a
|
||||||
|
modification, addition, deletion, replacement or any other adaptation to or of
|
||||||
|
a part or all of the Licensed Program, and includes a case where a Digital Font
|
||||||
|
Program newly created by retrieving font information from a part or all of the
|
||||||
|
Licensed Program or Embedded Fonts from a Digital Document File with or without
|
||||||
|
modification of the retrieved font information.
|
||||||
|
|
||||||
|
4. “Digital Content” shall mean products provided to end users in the form of
|
||||||
|
digital data, including video content, motion and/or still pictures, TV programs
|
||||||
|
or other broadcasting content and products consisting of character text,
|
||||||
|
pictures, photographic images, graphic symbols and/or the like.
|
||||||
|
|
||||||
|
5. “Digital Document File” shall mean a PDF file or other Digital Content created
|
||||||
|
by various software programs in which a part or all of the Licensed Program
|
||||||
|
becomes embedded or contained in the file for the display of the font
|
||||||
|
(“Embedded Fonts”). Embedded Fonts are used only in the display of characters
|
||||||
|
in the particular Digital Document File within which they are embedded, and
|
||||||
|
shall be distinguished from those in any Digital Font Program, which may be used
|
||||||
|
for display of characters outside that particular Digital Document File.
|
||||||
|
|
||||||
|
6. “Computer” shall include a server in this Agreement.
|
||||||
|
|
||||||
|
7. “Reproduction and Other Exploitation” shall mean reproduction, transfer,
|
||||||
|
distribution, lease, public transmission, presentation, exhibition, adaptation
|
||||||
|
and any other exploitation.
|
||||||
|
|
||||||
|
8. “Recipient” shall mean anyone who receives the Licensed Program under this
|
||||||
|
Agreement, including one that receives the Licensed Program from a Recipient.
|
||||||
|
|
||||||
|
|
||||||
|
Article 2 (Grant of License)
|
||||||
|
|
||||||
|
The Licensor grants to the Recipient a license to use the Licensed Program in
|
||||||
|
any and all countries in accordance with each of the provisions set forth in
|
||||||
|
this Agreement. However, any and all rights underlying in the Licensed Program
|
||||||
|
shall be held by the Licensor. In no sense is this Agreement intended to
|
||||||
|
transfer any right relating to the Licensed Program held by the Licensor except
|
||||||
|
as specifically set forth herein or any right relating to any trademark, trade
|
||||||
|
name, or service mark to the Recipient.
|
||||||
|
|
||||||
|
1. The Recipient may install the Licensed Program on any number of Computers and
|
||||||
|
use the same in accordance with the provisions set forth in this Agreement.
|
||||||
|
|
||||||
|
2. The Recipient may use the Licensed Program, with or without modification in
|
||||||
|
printed materials or in Digital Content as an expression of character texts or
|
||||||
|
the like.
|
||||||
|
|
||||||
|
3. The Recipient may conduct Reproduction and Other Exploitation of the printed
|
||||||
|
materials and Digital Content created in accordance with the preceding Paragraph,
|
||||||
|
for commercial or non-commercial purposes and in any form of media including but
|
||||||
|
not limited to broadcasting, communication and various recording media.
|
||||||
|
|
||||||
|
4. If any Recipient extracts Embedded Fonts from a Digital Document File to
|
||||||
|
create a Derived Program, such Derived Program shall be subject to the terms
|
||||||
|
of this agreement.
|
||||||
|
|
||||||
|
5. If any Recipient performs Reproduction or Other Exploitation of a Digital
|
||||||
|
Document File in which Embedded Fonts of the Licensed Program are used only for
|
||||||
|
rendering the Digital Content within such Digital Document File then such
|
||||||
|
Recipient shall have no further obligations under this Agreement in relation to
|
||||||
|
such actions.
|
||||||
|
|
||||||
|
6. The Recipient may reproduce the Licensed Program as is without modification
|
||||||
|
and transfer such copies, publicly transmit or otherwise redistribute the
|
||||||
|
Licensed Program to a third party for commercial or non-commercial purposes
|
||||||
|
(“Redistribute”), in accordance with the provisions set forth in Article 3
|
||||||
|
Paragraph 2.
|
||||||
|
|
||||||
|
7. The Recipient may create, use, reproduce and/or Redistribute a Derived
|
||||||
|
Program under the terms stated above for the Licensed Program: provided, that
|
||||||
|
the Recipient shall follow the provisions set forth in Article 3 Paragraph 1
|
||||||
|
when Redistributing the Derived Program.
|
||||||
|
|
||||||
|
|
||||||
|
Article 3 (Restriction)
|
||||||
|
|
||||||
|
The license granted in the preceding Article shall be subject to the following restrictions:
|
||||||
|
|
||||||
|
1. If a Derived Program is Redistributed pursuant to Paragraph 4 and 7 of the
|
||||||
|
preceding Article, the following conditions must be met :
|
||||||
|
(1) The following must be also Redistributed together with the Derived Program,
|
||||||
|
or be made available online or by means of mailing mechanisms in exchange
|
||||||
|
for a cost which does not exceed the total costs of postage, storage medium
|
||||||
|
and handling fees:
|
||||||
|
(a) a copy of the Derived Program; and
|
||||||
|
(b) any additional file created by the font developing program in the course
|
||||||
|
of creating the Derived Program that can be used for further modification
|
||||||
|
of the Derived Program, if any.
|
||||||
|
(2) It is required to also Redistribute means to enable recipients of the
|
||||||
|
Derived Program to replace the Derived Program with the Licensed Program
|
||||||
|
first released under this License (the “Original Program”). Such means may
|
||||||
|
be to provide a difference file from the Original Program, or instructions
|
||||||
|
setting out a method to replace the Derived Program with the Original
|
||||||
|
Program.
|
||||||
|
(3) The Recipient must license the Derived Program under the terms and
|
||||||
|
conditions of this Agreement.
|
||||||
|
(4) No one may use or include the name of the Licensed Program as a program
|
||||||
|
name, font name or file name of the Derived Program.
|
||||||
|
(5) Any material to be made available online or by means of mailing a medium
|
||||||
|
to satisfy the requirements of this paragraph may be provided, verbatim,
|
||||||
|
by any party wishing to do so.
|
||||||
|
2. If the Recipient Redistributes the Licensed Program pursuant to Paragraph 6
|
||||||
|
of the preceding Article, the Recipient shall meet all of the following conditions:
|
||||||
|
(1) The Recipient may not change the name of the Licensed Program.
|
||||||
|
(2) The Recipient may not alter or otherwise modify the Licensed Program.
|
||||||
|
(3) The Recipient must attach a copy of this Agreement to the Licensed Program.
|
||||||
|
|
||||||
|
3. THIS LICENSED PROGRAM IS PROVIDED BY THE LICENSOR “AS IS” AND ANY EXPRESSED
|
||||||
|
OR IMPLIED WARRANTY AS TO THE LICENSED PROGRAM OR ANY DERIVED PROGRAM, INCLUDING,
|
||||||
|
BUT NOT LIMITED TO, WARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, OR
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE, ARE DISCLAIMED. IN NO EVENT SHALL THE LICENSOR
|
||||||
|
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXTENDED, EXEMPLARY, OR
|
||||||
|
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO; PROCUREMENT OF SUBSTITUTED
|
||||||
|
GOODS OR SERVICE; DAMAGES ARISING FROM SYSTEM FAILURE; LOSS OR CORRUPTION OF
|
||||||
|
EXISTING DATA OR PROGRAM; LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF
|
||||||
|
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY OR TORT (INCLUDING NEGLIGENCE
|
||||||
|
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE INSTALLATION, USE, THE REPRODUCTION
|
||||||
|
OR OTHER EXPLOITATION OF THE LICENSED PROGRAM OR ANY DERIVED PROGRAM OR THE
|
||||||
|
EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGES.
|
||||||
|
|
||||||
|
4. The Licensor is under no obligation to respond to any technical questions or
|
||||||
|
inquiries, or provide any other user support in connection with the installation,
|
||||||
|
use or the Reproduction and Other Exploitation of the Licensed Program or Derived
|
||||||
|
Programs thereof.
|
||||||
|
|
||||||
|
|
||||||
|
Article 4 (Termination of Agreement)
|
||||||
|
|
||||||
|
The term of this Agreement shall begin from the time of receipt of the Licensed
|
||||||
|
Program by the Recipient and shall continue as long as the Recipient retains any
|
||||||
|
such Licensed Program in any way.
|
||||||
|
|
||||||
|
Notwithstanding the provision set forth in the preceding Paragraph, in the event
|
||||||
|
of the breach of any of the provisions set forth in this Agreement by the Recipient,
|
||||||
|
this Agreement shall automatically terminate without any notice. In the case of
|
||||||
|
such termination, the Recipient may not use or conduct Reproduction and Other
|
||||||
|
Exploitation of the Licensed Program or a Derived Program: provided that such
|
||||||
|
termination shall not affect any rights of any other Recipient receiving the
|
||||||
|
Licensed Program or the Derived Program from such Recipient who breached this
|
||||||
|
Agreement.
|
||||||
|
|
||||||
|
|
||||||
|
Article 5 (Governing Law)
|
||||||
|
|
||||||
|
IPA may publish revised and/or new versions of this License. In such an event,
|
||||||
|
the Recipient may select either this Agreement or any subsequent version of the
|
||||||
|
Agreement in using, conducting the Reproduction and Other Exploitation of, or
|
||||||
|
Redistributing the Licensed Program or a Derived Program. Other matters not
|
||||||
|
specified above shall be subject to the Copyright Law of Japan and other related
|
||||||
|
laws and regulations of Japan.
|
||||||
|
|
||||||
|
This Agreement shall be construed under the laws of Japan.
|
BIN
test/screenshotter/fonts/mincho/font_1_honokamin.ttf
Executable file
BIN
test/screenshotter/fonts/mincho/font_1_honokamin.ttf
Executable file
Binary file not shown.
@@ -12,11 +12,11 @@
|
|||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Mincho";
|
font-family: "Mincho";
|
||||||
src: url("/submodules/katex-test-fonts/mincho/font_1_honokamin.ttf") format("truetype");
|
src: url("fonts/mincho/font_1_honokamin.ttf") format("truetype");
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Batang";
|
font-family: "Batang";
|
||||||
src: url("/submodules/katex-test-fonts/batang/batang.ttf") format("truetype");
|
src: url("fonts/batang/batang.ttf") format("truetype");
|
||||||
}
|
}
|
||||||
.katex .cjk_fallback {
|
.katex .cjk_fallback {
|
||||||
font-family: "Mincho",serif;
|
font-family: "Mincho",serif;
|
||||||
|
Reference in New Issue
Block a user