diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-11 12:22:54 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-11 12:22:54 +0300 |
commit | 960df03c17091aca37f53eaab8fc27c669d26a5e (patch) | |
tree | 18721567f227928c528430daf9d06248a2443598 /res | |
parent | bf9158b29df506698e267d4583459ee4ebf20685 (diff) |
Media refactoring; working on FontPack management
Media still needs more work to get rid of redundancies and make lookups faster.
FontPacks are manipulated as Media items (not unlike images) so they can be previewed on page, and installed via a click.
FontPack management is not trivial as it includes such details as versioning and whether individual packs are enabled or disabled.
Diffstat (limited to 'res')
-rw-r--r-- | res/arabic.fontpack/fontpack.ini | 2 | ||||
-rw-r--r-- | res/cjk.fontpack/fontpack.ini | 2 | ||||
-rw-r--r-- | res/default.fontpack/fontpack.ini | 2 | ||||
-rw-r--r-- | res/firasans.fontpack/fontpack.ini | 2 | ||||
-rw-r--r-- | res/literata.fontpack/fontpack.ini | 2 | ||||
-rw-r--r-- | res/nunito.fontpack/fontpack.ini | 2 | ||||
-rw-r--r-- | res/tinos.fontpack/fontpack.ini | 2 |
7 files changed, 14 insertions, 0 deletions
diff --git a/res/arabic.fontpack/fontpack.ini b/res/arabic.fontpack/fontpack.ini index 00ad5241..305878ce 100644 --- a/res/arabic.fontpack/fontpack.ini +++ b/res/arabic.fontpack/fontpack.ini | |||
@@ -1,3 +1,5 @@ | |||
1 | version = 1 | ||
2 | |||
1 | [arabic] | 3 | [arabic] |
2 | name = "Noto Sans Arabic UI" | 4 | name = "Noto Sans Arabic UI" |
3 | auxiliary = true | 5 | auxiliary = true |
diff --git a/res/cjk.fontpack/fontpack.ini b/res/cjk.fontpack/fontpack.ini index fbac54be..6e0d274c 100644 --- a/res/cjk.fontpack/fontpack.ini +++ b/res/cjk.fontpack/fontpack.ini | |||
@@ -1,3 +1,5 @@ | |||
1 | version = 1 | ||
2 | |||
1 | [notosansjp] | 3 | [notosansjp] |
2 | name = "Noto Sans JP" | 4 | name = "Noto Sans JP" |
3 | auxiliary = true | 5 | auxiliary = true |
diff --git a/res/default.fontpack/fontpack.ini b/res/default.fontpack/fontpack.ini index 68316ef6..f8ef31ce 100644 --- a/res/default.fontpack/fontpack.ini +++ b/res/default.fontpack/fontpack.ini | |||
@@ -17,6 +17,8 @@ | |||
17 | # `glyphscale` and `voffset` can also be specified separately for the UI and | 17 | # `glyphscale` and `voffset` can also be specified separately for the UI and |
18 | # document domains by prefixing `ui.` or `doc.` to the key. | 18 | # document domains by prefixing `ui.` or `doc.` to the key. |
19 | 19 | ||
20 | version = 1 | ||
21 | |||
20 | [default] | 22 | [default] |
21 | name = "Source Sans" | 23 | name = "Source Sans" |
22 | regular = "SourceSans3-Regular.ttf" | 24 | regular = "SourceSans3-Regular.ttf" |
diff --git a/res/firasans.fontpack/fontpack.ini b/res/firasans.fontpack/fontpack.ini index 4378a757..c6eb4c77 100644 --- a/res/firasans.fontpack/fontpack.ini +++ b/res/firasans.fontpack/fontpack.ini | |||
@@ -1,3 +1,5 @@ | |||
1 | version = 1 | ||
2 | |||
1 | [firasans] | 3 | [firasans] |
2 | name = "Fira Sans" | 4 | name = "Fira Sans" |
3 | glyphscale = 0.85 | 5 | glyphscale = 0.85 |
diff --git a/res/literata.fontpack/fontpack.ini b/res/literata.fontpack/fontpack.ini index e4e49bcb..7c29491d 100644 --- a/res/literata.fontpack/fontpack.ini +++ b/res/literata.fontpack/fontpack.ini | |||
@@ -1,3 +1,5 @@ | |||
1 | version = 1 | ||
2 | |||
1 | [literata] | 3 | [literata] |
2 | name = "Literata" | 4 | name = "Literata" |
3 | regular = "Literata-Regular-opsz=14.ttf" | 5 | regular = "Literata-Regular-opsz=14.ttf" |
diff --git a/res/nunito.fontpack/fontpack.ini b/res/nunito.fontpack/fontpack.ini index ea4a12b8..2f2471e1 100644 --- a/res/nunito.fontpack/fontpack.ini +++ b/res/nunito.fontpack/fontpack.ini | |||
@@ -1,3 +1,5 @@ | |||
1 | version = 1 | ||
2 | |||
1 | [nunito] | 3 | [nunito] |
2 | name = "Nunito" | 4 | name = "Nunito" |
3 | tweaks = 0x1 # some hardcoded kerning changes (`Th`, etc.) | 5 | tweaks = 0x1 # some hardcoded kerning changes (`Th`, etc.) |
diff --git a/res/tinos.fontpack/fontpack.ini b/res/tinos.fontpack/fontpack.ini index 8759b752..a2cf811e 100644 --- a/res/tinos.fontpack/fontpack.ini +++ b/res/tinos.fontpack/fontpack.ini | |||
@@ -1,3 +1,5 @@ | |||
1 | version = 1 | ||
2 | |||
1 | [tinos] | 3 | [tinos] |
2 | name = "Tinos" | 4 | name = "Tinos" |
3 | glyphscale = 0.850 | 5 | glyphscale = 0.850 |