Skip to content

Commit cc79c8c

Browse files
Merge pull request #5 from thecodewarrior/nuklear
New typesetter and Nuklear UI
2 parents b8251e7 + 2ae6f67 commit cc79c8c

File tree

1,093 files changed

+62048
-4230
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,093 files changed

+62048
-4230
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This workflow will build a package using Gradle and then publish it to Bintray when a release is created
2+
# For more information see: https://github.com/actions/setup-java#publishing-using-gradle
3+
4+
name: Publish Releases
5+
6+
on:
7+
release:
8+
types: [published]
9+
10+
jobs:
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Set up JDK 1.8
18+
uses: actions/setup-java@v1
19+
with:
20+
java-version: 1.8
21+
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
22+
settings-path: ${{ github.workspace }} # location for the settings.xml file
23+
24+
- name: Build with Gradle
25+
run: ./gradlew :bitfontcore:build
26+
27+
- name: Publish to Bintray
28+
run: ./gradlew :bitfontcore:bintrayUpload
29+
env:
30+
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
31+
BINTRAY_API_KEY: ${{ secrets.BINTRAY_API_KEY }}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This workflow will build a package using Gradle and then publish it oss.jfrog.org when a release is created
2+
# For more information see: https://github.com/actions/setup-java#publishing-using-gradle
3+
4+
name: Publish Snapshots
5+
6+
on: push
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up JDK 1.8
16+
uses: actions/setup-java@v1
17+
with:
18+
java-version: 1.8
19+
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
20+
settings-path: ${{ github.workspace }} # location for the settings.xml file
21+
22+
- name: Build with Gradle
23+
run: ./gradlew :bitfontcore:build
24+
25+
- name: Publish to oss.jfrog.org
26+
run: ./gradlew :bitfontcore:artifactoryPublish
27+
env:
28+
SNAPSHOT_BRANCH: ${{ github.ref }}
29+
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
30+
BINTRAY_API_KEY: ${{ secrets.BINTRAY_API_KEY }}
31+
ARTIFACTORY_BUILD_NUMBER: ${{ github.run_number }}

NOTICE.md

Lines changed: 189 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,189 @@
1+
### Google Noto
2+
> Copyright 2018 The Noto Project Authors (github.com/googlei18n/noto-fonts)
3+
>
4+
> This Font Software is licensed under the SIL Open Font License,
5+
> Version 1.1.
6+
>
7+
> This license is copied below, and is also available with a FAQ at:
8+
> http://scripts.sil.org/OFL
9+
>
10+
> -----------------------------------------------------------
11+
> SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
12+
> -----------------------------------------------------------
13+
>
14+
> PREAMBLE
15+
> The goals of the Open Font License (OFL) are to stimulate worldwide
16+
> development of collaborative font projects, to support the font
17+
> creation efforts of academic and linguistic communities, and to
18+
> provide a free and open framework in which fonts may be shared and
19+
> improved in partnership with others.
20+
>
21+
> The OFL allows the licensed fonts to be used, studied, modified and
22+
> redistributed freely as long as they are not sold by themselves. The
23+
> fonts, including any derivative works, can be bundled, embedded,
24+
> redistributed and/or sold with any software provided that any reserved
25+
> names are not used by derivative works. The fonts and derivatives,
26+
> however, cannot be released under any other type of license. The
27+
> requirement for fonts to remain under this license does not apply to
28+
> any document created using the fonts or their derivatives.
29+
>
30+
> DEFINITIONS
31+
> "Font Software" refers to the set of files released by the Copyright
32+
> Holder(s) under this license and clearly marked as such. This may
33+
> include source files, build scripts and documentation.
34+
>
35+
> "Reserved Font Name" refers to any names specified as such after the
36+
> copyright statement(s).
37+
>
38+
> "Original Version" refers to the collection of Font Software
39+
> components as distributed by the Copyright Holder(s).
40+
>
41+
> "Modified Version" refers to any derivative made by adding to,
42+
> deleting, or substituting -- in part or in whole -- any of the
43+
> components of the Original Version, by changing formats or by porting
44+
> the Font Software to a new environment.
45+
>
46+
> "Author" refers to any designer, engineer, programmer, technical
47+
> writer or other person who contributed to the Font Software.
48+
>
49+
> PERMISSION & CONDITIONS
50+
> Permission is hereby granted, free of charge, to any person obtaining
51+
> a copy of the Font Software, to use, study, copy, merge, embed,
52+
> modify, redistribute, and sell modified and unmodified copies of the
53+
> Font Software, subject to the following conditions:
54+
>
55+
> 1) Neither the Font Software nor any of its individual components, in
56+
> Original or Modified Versions, may be sold by itself.
57+
>
58+
> 2) Original or Modified Versions of the Font Software may be bundled,
59+
> redistributed and/or sold with any software, provided that each copy
60+
> contains the above copyright notice and this license. These can be
61+
> included either as stand-alone text files, human-readable headers or
62+
> in the appropriate machine-readable metadata fields within text or
63+
> binary files as long as those fields can be easily viewed by the user.
64+
>
65+
> 3) No Modified Version of the Font Software may use the Reserved Font
66+
> Name(s) unless explicit written permission is granted by the
67+
> corresponding Copyright Holder. This restriction only applies to the
68+
> primary font name as presented to the users.
69+
>
70+
> 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
71+
> Software shall not be used to promote, endorse or advertise any
72+
> Modified Version, except to acknowledge the contribution(s) of the
73+
> Copyright Holder(s) and the Author(s) or with their explicit written
74+
> permission.
75+
>
76+
> 5) The Font Software, modified or unmodified, in part or in whole,
77+
> must be distributed entirely under this license, and must not be
78+
> distributed under any other license. The requirement for fonts to
79+
> remain under this license does not apply to any document created using
80+
> the Font Software.
81+
>
82+
> TERMINATION
83+
> This license becomes null and void if any of the above conditions are
84+
> not met.
85+
>
86+
> DISCLAIMER
87+
> THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
88+
> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
89+
> MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
90+
> OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
91+
> COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
92+
> INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
93+
> DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
94+
> FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
95+
> OTHER DEALINGS IN THE FONT SOFTWARE.
96+
97+
### Google Noto CJK
98+
> This Font Software is licensed under the SIL Open Font License,
99+
> Version 1.1.
100+
>
101+
> This license is copied below, and is also available with a FAQ at:
102+
> http://scripts.sil.org/OFL
103+
>
104+
> -----------------------------------------------------------
105+
> SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
106+
> -----------------------------------------------------------
107+
>
108+
> PREAMBLE
109+
> The goals of the Open Font License (OFL) are to stimulate worldwide
110+
> development of collaborative font projects, to support the font
111+
> creation efforts of academic and linguistic communities, and to
112+
> provide a free and open framework in which fonts may be shared and
113+
> improved in partnership with others.
114+
>
115+
> The OFL allows the licensed fonts to be used, studied, modified and
116+
> redistributed freely as long as they are not sold by themselves. The
117+
> fonts, including any derivative works, can be bundled, embedded,
118+
> redistributed and/or sold with any software provided that any reserved
119+
> names are not used by derivative works. The fonts and derivatives,
120+
> however, cannot be released under any other type of license. The
121+
> requirement for fonts to remain under this license does not apply to
122+
> any document created using the fonts or their derivatives.
123+
>
124+
> DEFINITIONS
125+
> "Font Software" refers to the set of files released by the Copyright
126+
> Holder(s) under this license and clearly marked as such. This may
127+
> include source files, build scripts and documentation.
128+
>
129+
> "Reserved Font Name" refers to any names specified as such after the
130+
> copyright statement(s).
131+
>
132+
> "Original Version" refers to the collection of Font Software
133+
> components as distributed by the Copyright Holder(s).
134+
>
135+
> "Modified Version" refers to any derivative made by adding to,
136+
> deleting, or substituting -- in part or in whole -- any of the
137+
> components of the Original Version, by changing formats or by porting
138+
> the Font Software to a new environment.
139+
>
140+
> "Author" refers to any designer, engineer, programmer, technical
141+
> writer or other person who contributed to the Font Software.
142+
>
143+
> PERMISSION & CONDITIONS
144+
> Permission is hereby granted, free of charge, to any person obtaining
145+
> a copy of the Font Software, to use, study, copy, merge, embed,
146+
> modify, redistribute, and sell modified and unmodified copies of the
147+
> Font Software, subject to the following conditions:
148+
>
149+
> 1) Neither the Font Software nor any of its individual components, in
150+
> Original or Modified Versions, may be sold by itself.
151+
>
152+
> 2) Original or Modified Versions of the Font Software may be bundled,
153+
> redistributed and/or sold with any software, provided that each copy
154+
> contains the above copyright notice and this license. These can be
155+
> included either as stand-alone text files, human-readable headers or
156+
> in the appropriate machine-readable metadata fields within text or
157+
> binary files as long as those fields can be easily viewed by the user.
158+
>
159+
> 3) No Modified Version of the Font Software may use the Reserved Font
160+
> Name(s) unless explicit written permission is granted by the
161+
> corresponding Copyright Holder. This restriction only applies to the
162+
> primary font name as presented to the users.
163+
>
164+
> 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
165+
> Software shall not be used to promote, endorse or advertise any
166+
> Modified Version, except to acknowledge the contribution(s) of the
167+
> Copyright Holder(s) and the Author(s) or with their explicit written
168+
> permission.
169+
>
170+
> 5) The Font Software, modified or unmodified, in part or in whole,
171+
> must be distributed entirely under this license, and must not be
172+
> distributed under any other license. The requirement for fonts to
173+
> remain under this license does not apply to any document created using
174+
> the Font Software.
175+
>
176+
> TERMINATION
177+
> This license becomes null and void if any of the above conditions are
178+
> not met.
179+
>
180+
> DISCLAIMER
181+
> THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
182+
> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
183+
> MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
184+
> OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
185+
> COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
186+
> INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
187+
> DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
188+
> FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
189+
> OTHER DEALINGS IN THE FONT SOFTWARE.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Bitfont
2+
A bitmap font file format, typesetter, and text editor backend.
3+
4+
The typesetter and text editor system will be based almost entirely on the documentation of Apple's mature [Cocoa Text Architecture](https://developer.apple.com/library/archive/documentation/TextFonts/Conceptual/CocoaTextArchitecture/Introduction/Introduction.html#//apple_ref/doc/uid/TP40009459-CH1-SW1).

build.gradle

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
buildscript {
2+
repositories {
3+
jcenter()
4+
}
5+
dependencies {
6+
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:latest.release"
7+
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.+'
8+
}
9+
}
10+
11+
plugins {
12+
id "org.jetbrains.kotlin.jvm" version "1.4.0"
13+
}
14+
15+
def maven_version = library_version
16+
def snapshotBranch = System.getenv('SNAPSHOT_BRANCH')
17+
if(snapshotBranch != null) {
18+
if(snapshotBranch.startsWith('refs/heads/'))
19+
snapshotBranch = snapshotBranch.substring('refs/heads/'.length())
20+
maven_version = snapshotBranch.replaceAll('[^.\\w-]', '-') + '-SNAPSHOT'
21+
logger.lifecycle("Using SNAPSHOT version `{}`", version)
22+
}
23+
24+
// pass `-PbitfontVersion=foo` to set the version directly. Useful for publishing to the local maven repository
25+
if(hasProperty('bitfontVersion')) {
26+
maven_version = bitfontVersion
27+
}
28+
29+
allprojects {
30+
group = "dev.thecodewarrior.bitfont"
31+
version = maven_version
32+
33+
repositories {
34+
jcenter()
35+
}
36+
}

build.gradle.kts

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)