Skip to content

Commit 829dae9

Browse files
fonts: Add KaTeX custom fonts
Downloaded from: https://github.com/KaTeX/KaTeX/tree/2fe1941b7/fonts These fonts will be used in later commits to show KaTeX content.
1 parent e312716 commit 829dae9

23 files changed

+92
-0
lines changed

assets/KaTeX/KaTeX_AMS-Regular.ttf

62.1 KB
Binary file not shown.
12.1 KB
Binary file not shown.
12.1 KB
Binary file not shown.

assets/KaTeX/KaTeX_Fraktur-Bold.ttf

19.1 KB
Binary file not shown.
19.1 KB
Binary file not shown.

assets/KaTeX/KaTeX_Main-Bold.ttf

50.1 KB
Binary file not shown.
32.2 KB
Binary file not shown.

assets/KaTeX/KaTeX_Main-Italic.ttf

32.8 KB
Binary file not shown.

assets/KaTeX/KaTeX_Main-Regular.ttf

52.3 KB
Binary file not shown.
30.5 KB
Binary file not shown.

assets/KaTeX/KaTeX_Math-Italic.ttf

30.6 KB
Binary file not shown.

assets/KaTeX/KaTeX_SansSerif-Bold.ttf

23.9 KB
Binary file not shown.
21.8 KB
Binary file not shown.
19 KB
Binary file not shown.

assets/KaTeX/KaTeX_Script-Regular.ttf

16.3 KB
Binary file not shown.

assets/KaTeX/KaTeX_Size1-Regular.ttf

11.9 KB
Binary file not shown.

assets/KaTeX/KaTeX_Size2-Regular.ttf

11.2 KB
Binary file not shown.

assets/KaTeX/KaTeX_Size3-Regular.ttf

7.41 KB
Binary file not shown.

assets/KaTeX/KaTeX_Size4-Regular.ttf

10.1 KB
Binary file not shown.
26.9 KB
Binary file not shown.

assets/KaTeX/LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2013-2020 Khan Academy and other contributors
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

lib/licenses.dart

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ import 'package:flutter/services.dart';
1212
Stream<LicenseEntry> additionalLicenses() async* {
1313
// Alphabetic by path.
1414

15+
yield LicenseEntryWithLineBreaks(
16+
['KaTeX'],
17+
await rootBundle.loadString('assets/KaTeX/LICENSE'));
1518
yield LicenseEntryWithLineBreaks(
1619
['Noto Color Emoji'],
1720
await rootBundle.loadString('assets/Noto_Color_Emoji/LICENSE'));

pubspec.yaml

+68
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,74 @@ flutter:
122122
- assets/Source_Sans_3/LICENSE.md
123123

124124
fonts:
125+
# KaTeX's custom fonts.
126+
- family: KaTeX_AMS
127+
fonts:
128+
- asset: assets/KaTeX/KaTeX_AMS-Regular.ttf
129+
130+
- family: KaTeX_Caligraphic
131+
fonts:
132+
- asset: assets/KaTeX/KaTeX_Caligraphic-Regular.ttf
133+
- asset: assets/KaTeX/KaTeX_Caligraphic-Bold.ttf
134+
weight: 700
135+
136+
- family: KaTeX_Fraktur
137+
fonts:
138+
- asset: assets/KaTeX/KaTeX_Fraktur-Regular.ttf
139+
- asset: assets/KaTeX/KaTeX_Fraktur-Bold.ttf
140+
weight: 700
141+
142+
- family: KaTeX_Main
143+
fonts:
144+
- asset: assets/KaTeX/KaTeX_Main-Regular.ttf
145+
- asset: assets/KaTeX/KaTeX_Main-Bold.ttf
146+
weight: 700
147+
- asset: assets/KaTeX/KaTeX_Main-Italic.ttf
148+
style: italic
149+
- asset: assets/KaTeX/KaTeX_Main-BoldItalic.ttf
150+
weight: 700
151+
style: italic
152+
153+
- family: KaTeX_Math
154+
fonts:
155+
- asset: assets/KaTeX/KaTeX_Math-Italic.ttf
156+
style: italic
157+
- asset: assets/KaTeX/KaTeX_Math-BoldItalic.ttf
158+
weight: 700
159+
style: italic
160+
161+
- family: KaTeX_SansSerif
162+
fonts:
163+
- asset: assets/KaTeX/KaTeX_SansSerif-Regular.ttf
164+
- asset: assets/KaTeX/KaTeX_SansSerif-Bold.ttf
165+
weight: 700
166+
- asset: assets/KaTeX/KaTeX_SansSerif-Italic.ttf
167+
style: italic
168+
169+
- family: KaTeX_Script
170+
fonts:
171+
- asset: assets/KaTeX/KaTeX_Script-Regular.ttf
172+
173+
- family: KaTeX_Size1
174+
fonts:
175+
- asset: assets/KaTeX/KaTeX_Size1-Regular.ttf
176+
177+
- family: KaTeX_Size2
178+
fonts:
179+
- asset: assets/KaTeX/KaTeX_Size2-Regular.ttf
180+
181+
- family: KaTeX_Size3
182+
fonts:
183+
- asset: assets/KaTeX/KaTeX_Size3-Regular.ttf
184+
185+
- family: KaTeX_Size4
186+
fonts:
187+
- asset: assets/KaTeX/KaTeX_Size4-Regular.ttf
188+
189+
- family: KaTeX_Typewriter
190+
fonts:
191+
- asset: assets/KaTeX/KaTeX_Typewriter-Regular.ttf
192+
125193
# Google's emoji font. (Web uses these emoji for the "Google" emojiset.)
126194
#
127195
# This should not be used on iOS.

0 commit comments

Comments
 (0)