-
Notifications
You must be signed in to change notification settings - Fork 666
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
217 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { BravuraFont } from "./bravura_glyphs"; | ||
import { BravuraMetrics } from "./bravura_metrics"; | ||
|
||
const Bravura = { | ||
fontData: BravuraFont, | ||
metrics: BravuraMetrics, | ||
}; | ||
|
||
export default Bravura; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { CustomFont } from "./custom_glyphs"; | ||
import { CustomMetrics } from "./custom_metrics"; | ||
|
||
const Custom = { | ||
fontData: CustomFont, | ||
metrics: CustomMetrics, | ||
}; | ||
|
||
export default Custom; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { GonvilleFont } from "./gonville_glyphs"; | ||
import { GonvilleMetrics } from "./gonville_metrics"; | ||
|
||
const Gonville = { | ||
fontData: GonvilleFont, | ||
metrics: GonvilleMetrics, | ||
}; | ||
|
||
export default Gonville; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { FontData } from '../font'; | ||
export async function loadBravura(): Promise<{ metrics: Record<string, any>; fontData: FontData }> { | ||
const _ = await import(/* webpackChunkName: "bravura" */ '../fonts/bravura'); | ||
return _.default; | ||
} | ||
|
||
export async function loadCustom(): Promise<{ metrics: Record<string, any>; fontData: FontData }> { | ||
const _ = await import(/* webpackChunkName: "custom" */ '../fonts/custom'); | ||
return _.default; | ||
} | ||
|
||
export async function loadGonville(): Promise<{ metrics: Record<string, any>; fontData: FontData }> { | ||
const _ = await import(/* webpackChunkName: "gonville" */ '../fonts/gonville'); | ||
return _.default; | ||
} | ||
|
||
export async function loadPetaluma(): Promise<{ metrics: Record<string, any>; fontData: FontData }> { | ||
const _ = await import(/* webpackChunkName: "petaluma" */ '../fonts/petaluma'); | ||
return _.default; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import Bravura from '../fonts/bravura'; | ||
import Gonville from '../fonts/gonville'; | ||
import Petaluma from '../fonts/petaluma'; | ||
import Custom from '../fonts/custom'; | ||
import { FontData } from '../font'; | ||
|
||
// eslint-disable-next-line | ||
export async function loadBravura(): Promise<{ metrics: Record<string, any>; fontData: FontData }> { | ||
return Bravura; | ||
} | ||
|
||
// eslint-disable-next-line | ||
export async function loadGonville(): Promise<{ metrics: Record<string, any>; fontData: FontData }> { | ||
return Gonville; | ||
} | ||
|
||
// eslint-disable-next-line | ||
export async function loadPetaluma(): Promise<{ metrics: Record<string, any>; fontData: FontData }> { | ||
return Petaluma; | ||
} | ||
|
||
// eslint-disable-next-line | ||
export async function loadCustom(): Promise<{ metrics: Record<string, any>; fontData: FontData }> { | ||
return Custom; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { PetalumaFont } from "./petaluma_glyphs"; | ||
import { PetalumaMetrics } from "./petaluma_metrics"; | ||
|
||
const Petaluma = { | ||
fontData: PetalumaFont, | ||
metrics: PetalumaMetrics, | ||
}; | ||
|
||
export default Petaluma; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import { Note } from '../note'; | ||
|
||
export interface FontInfo { | ||
size: number; | ||
weight: string; | ||
|
Oops, something went wrong.