imfeel 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,10 @@
1
+ .venv/
2
+ __pycache__/
3
+ *.pyc
4
+ .mypy_cache/
5
+ .ruff_cache/
6
+ .pytest_cache/
7
+ build/
8
+ dist/
9
+ *.egg-info/
10
+ imgui.ini
imfeel-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Walter Reel
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.
imfeel-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,96 @@
1
+ Metadata-Version: 2.5
2
+ Name: imfeel
3
+ Version: 0.1.0
4
+ Summary: A consistent look and feel for Dear ImGui apps: conventions, not a framework
5
+ Project-URL: Homepage, https://github.com/WalterCReel3/imfeel
6
+ Project-URL: Repository, https://github.com/WalterCReel3/imfeel
7
+ Project-URL: Issues, https://github.com/WalterCReel3/imfeel/issues
8
+ Author: Walter Reel
9
+ License-Expression: MIT
10
+ License-File: LICENSE
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3 :: Only
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Typing :: Typed
16
+ Requires-Python: >=3.11
17
+ Requires-Dist: imgui-bundle==1.92.900
18
+ Requires-Dist: imscribe>=0.2.0
19
+ Provides-Extra: dev
20
+ Requires-Dist: black>=24.1; extra == 'dev'
21
+ Requires-Dist: build>=1.2; extra == 'dev'
22
+ Requires-Dist: hatchling>=1.27; extra == 'dev'
23
+ Requires-Dist: mypy>=1.11; extra == 'dev'
24
+ Requires-Dist: numpy>=1.24; extra == 'dev'
25
+ Requires-Dist: pyopengl>=3.1; extra == 'dev'
26
+ Requires-Dist: pytest>=8.0; extra == 'dev'
27
+ Requires-Dist: ruff>=0.16; extra == 'dev'
28
+ Requires-Dist: twine>=6.0; extra == 'dev'
29
+ Description-Content-Type: text/markdown
30
+
31
+ # imfeel
32
+
33
+ A consistent look and feel for [Dear ImGui](https://github.com/ocornut/imgui) apps in
34
+ Python, on [`imgui-bundle`](https://pypi.org/project/imgui-bundle/), with
35
+ [imscribe](https://pypi.org/project/imscribe/) and
36
+ [imtypeset](https://pypi.org/project/imtypeset/) for all read-only text.
37
+
38
+ It is a small library of conventions, not a framework: plain functions and
39
+ begin/end context managers that call ImGui the same way every time, with small
40
+ per-widget state keyed by the ImGui ID. There is no retained widget tree and no
41
+ event system, raw `imgui` stays usable beside it, and adopting it is opt-in.
42
+
43
+ ```
44
+ pip install imfeel
45
+ ```
46
+
47
+ ## What is in it
48
+
49
+ - **A semantic palette** as data (`imfeel.Palette`, a frozen dataclass of named
50
+ roles) with five themes in `imfeel.THEMES`, and `apply_style(palette)`, which
51
+ sets `ImGuiStyle` once. Sizes are in ems of the UI font. The palette is passed
52
+ explicitly or through `use_palette`, never a module global that panels import.
53
+ - **Widgets** with one convention each: `button`, `small_button`, `safe_button`
54
+ (mouse release only, never Space or Enter, for actions that cannot be undone),
55
+ `link`, `section`, `help_mark`, `notice`, dialog helpers, `begin_context_menu`,
56
+ `multiline_input`.
57
+ - **Containers that scroll the same way everywhere**: `scroll_area` and
58
+ `scroll_window` (Up, Down, PageUp, PageDown, Home and End when focused or
59
+ hovered, routed with `imgui.shortcut`, never by turning on keyboard
60
+ navigation; drag-edge auto-scroll that works with imscribe views; follow-tail).
61
+ - **`list_view`**: rows of one height on Dear ImGui's native multi-select and
62
+ box-select, with keyboard row movement, cheap at 10,000 rows.
63
+ - **Value controls** (`slider_float`, `drag_int`, `combo`, ...) that answer the
64
+ arrow keys, and **shortcuts** (`escape_closes`, `copy_shortcut`) so Escape and
65
+ copy behave the same everywhere.
66
+ - **imscribe's default rendering**, as pptmstr sets it: faces, sizes, roles and
67
+ formulas on by default, with the fonts loaded by `load_fonts()`.
68
+
69
+ The demo is the specification: every default the library sets is drawn and
70
+ labelled in it. Run it with
71
+
72
+ ```
73
+ python -m imfeel.demo
74
+ ```
75
+
76
+ (it needs a display), or `python -m imfeel.demo --list` for its window names.
77
+
78
+ ## Pins
79
+
80
+ imfeel requires `imgui-bundle==1.92.900` exactly, the version imscribe and
81
+ imtypeset are built for, and `imscribe>=0.2.0`. It cannot be installed beside
82
+ anything that needs another `imgui-bundle`. An application that pins its own
83
+ dependencies pins that one with it.
84
+
85
+ ## Fonts
86
+
87
+ The wheel carries Inconsolata Bold (`imfeel/assets/fonts/Inconsolata-Bold.ttf`)
88
+ under the SIL Open Font License 1.1, with `OFL.txt` beside it: imscribe backs
89
+ bold code with a proportional bold unless a host registers a monospace one, and
90
+ the `imgui-bundle` wheel ships no Inconsolata Bold.
91
+
92
+ ## Licence
93
+
94
+ MIT. See the [repository](https://github.com/WalterCReel3/imfeel) for the
95
+ source, the inventory of defaults (`docs/DEFAULTS.md`) and the decisions behind
96
+ them (`docs/DECISIONS.md`).
@@ -0,0 +1,66 @@
1
+ # imfeel
2
+
3
+ A consistent look and feel for [Dear ImGui](https://github.com/ocornut/imgui) apps in
4
+ Python, on [`imgui-bundle`](https://pypi.org/project/imgui-bundle/), with
5
+ [imscribe](https://pypi.org/project/imscribe/) and
6
+ [imtypeset](https://pypi.org/project/imtypeset/) for all read-only text.
7
+
8
+ It is a small library of conventions, not a framework: plain functions and
9
+ begin/end context managers that call ImGui the same way every time, with small
10
+ per-widget state keyed by the ImGui ID. There is no retained widget tree and no
11
+ event system, raw `imgui` stays usable beside it, and adopting it is opt-in.
12
+
13
+ ```
14
+ pip install imfeel
15
+ ```
16
+
17
+ ## What is in it
18
+
19
+ - **A semantic palette** as data (`imfeel.Palette`, a frozen dataclass of named
20
+ roles) with five themes in `imfeel.THEMES`, and `apply_style(palette)`, which
21
+ sets `ImGuiStyle` once. Sizes are in ems of the UI font. The palette is passed
22
+ explicitly or through `use_palette`, never a module global that panels import.
23
+ - **Widgets** with one convention each: `button`, `small_button`, `safe_button`
24
+ (mouse release only, never Space or Enter, for actions that cannot be undone),
25
+ `link`, `section`, `help_mark`, `notice`, dialog helpers, `begin_context_menu`,
26
+ `multiline_input`.
27
+ - **Containers that scroll the same way everywhere**: `scroll_area` and
28
+ `scroll_window` (Up, Down, PageUp, PageDown, Home and End when focused or
29
+ hovered, routed with `imgui.shortcut`, never by turning on keyboard
30
+ navigation; drag-edge auto-scroll that works with imscribe views; follow-tail).
31
+ - **`list_view`**: rows of one height on Dear ImGui's native multi-select and
32
+ box-select, with keyboard row movement, cheap at 10,000 rows.
33
+ - **Value controls** (`slider_float`, `drag_int`, `combo`, ...) that answer the
34
+ arrow keys, and **shortcuts** (`escape_closes`, `copy_shortcut`) so Escape and
35
+ copy behave the same everywhere.
36
+ - **imscribe's default rendering**, as pptmstr sets it: faces, sizes, roles and
37
+ formulas on by default, with the fonts loaded by `load_fonts()`.
38
+
39
+ The demo is the specification: every default the library sets is drawn and
40
+ labelled in it. Run it with
41
+
42
+ ```
43
+ python -m imfeel.demo
44
+ ```
45
+
46
+ (it needs a display), or `python -m imfeel.demo --list` for its window names.
47
+
48
+ ## Pins
49
+
50
+ imfeel requires `imgui-bundle==1.92.900` exactly, the version imscribe and
51
+ imtypeset are built for, and `imscribe>=0.2.0`. It cannot be installed beside
52
+ anything that needs another `imgui-bundle`. An application that pins its own
53
+ dependencies pins that one with it.
54
+
55
+ ## Fonts
56
+
57
+ The wheel carries Inconsolata Bold (`imfeel/assets/fonts/Inconsolata-Bold.ttf`)
58
+ under the SIL Open Font License 1.1, with `OFL.txt` beside it: imscribe backs
59
+ bold code with a proportional bold unless a host registers a monospace one, and
60
+ the `imgui-bundle` wheel ships no Inconsolata Bold.
61
+
62
+ ## Licence
63
+
64
+ MIT. See the [repository](https://github.com/WalterCReel3/imfeel) for the
65
+ source, the inventory of defaults (`docs/DEFAULTS.md`) and the decisions behind
66
+ them (`docs/DECISIONS.md`).
@@ -0,0 +1,108 @@
1
+ [project]
2
+ name = "imfeel"
3
+ # The same string as `imfeel.__version__` (`tests/test_dist.py` holds them equal).
4
+ # `make dist` builds the files; `.github/workflows/release.yml` publishes them for
5
+ # a pushed tag `v<version>` and refuses a tag that is not this string.
6
+ version = "0.1.0"
7
+ description = "A consistent look and feel for Dear ImGui apps: conventions, not a framework"
8
+ # The page PyPI shows: short, and true of an installed wheel. README.md is the
9
+ # repository's (how the tree is built and tested) and is in neither the wheel nor the sdist.
10
+ readme = "README-pypi.md"
11
+ requires-python = ">=3.11"
12
+ # What has been run: CPython 3.11 on Linux. ci.yml also runs 3.12 to 3.14; add a classifier
13
+ # here when its leg has been green, not before.
14
+ classifiers = [
15
+ "Development Status :: 3 - Alpha",
16
+ "Programming Language :: Python :: 3",
17
+ "Programming Language :: Python :: 3 :: Only",
18
+ "Programming Language :: Python :: 3.11",
19
+ "Typing :: Typed",
20
+ ]
21
+ # MIT, like imscribe, Dear ImGui and Dear ImGui Bundle. The vendored Inconsolata Bold
22
+ # (src/imfeel/assets/fonts) is SIL OFL 1.1; its licence travels beside it in the wheel.
23
+ license = "MIT"
24
+ license-files = ["LICENSE"]
25
+ authors = [{ name = "Walter Reel" }]
26
+ dependencies = [
27
+ # The pin pptmstr and imscribe share: one imgui_bundle in one process.
28
+ "imgui-bundle==1.92.900",
29
+ "imscribe>=0.2.0",
30
+ ]
31
+
32
+ [project.urls]
33
+ Homepage = "https://github.com/WalterCReel3/imfeel"
34
+ Repository = "https://github.com/WalterCReel3/imfeel"
35
+ Issues = "https://github.com/WalterCReel3/imfeel/issues"
36
+
37
+ [project.optional-dependencies]
38
+ dev = [
39
+ "pytest>=8.0",
40
+ "black>=24.1",
41
+ "mypy>=1.11",
42
+ "ruff>=0.16",
43
+ "numpy>=1.24",
44
+ # `make shot`: the frame is read with glReadPixels through PyOpenGL (imgui-bundle's own
45
+ # `opengl` extra) and written as a PNG by hand, so numpy is not what it needs.
46
+ "PyOpenGL>=3.1",
47
+ # `make dist`: the front end and the backend under [build-system], installed so the build
48
+ # runs without network and without an isolated environment (`python -m build
49
+ # --no-isolation`), and `twine check` (whether PyPI will render the description).
50
+ "build>=1.2",
51
+ "hatchling>=1.27",
52
+ "twine>=6.0",
53
+ ]
54
+
55
+ [build-system]
56
+ requires = ["hatchling>=1.27"]
57
+ build-backend = "hatchling.build"
58
+
59
+ # The wheel is `imfeel/` and its metadata: no tests, no scripts, no docs. Everything under the
60
+ # package ships with it, `imfeel/py.typed` and the vendored font in `imfeel/assets/fonts/` (the
61
+ # Inconsolata Bold file and its OFL.txt): `imfeel.fonts.ASSETS_DIR` is found relative to the
62
+ # module, so an installed wheel finds them where the source tree does. `scripts/make_dist.py`
63
+ # refuses a wheel that holds anything else or lacks the font or its licence.
64
+ [tool.hatch.build.targets.wheel]
65
+ packages = ["src/imfeel"]
66
+
67
+ # The sdist is what BUILDS and DESCRIBES the package and nothing else, as imscribe's is: the
68
+ # package, this file, the licence and the page PyPI shows. Listed explicitly: hatchling falls
69
+ # back to parsing .gitignore otherwise, which couples what ships to what is ignored. Hatchling
70
+ # adds PKG-INFO, and `.gitignore` where the source has one, whatever this list says.
71
+ # `scripts/make_dist.py` refuses an sdist holding anything else and `tests/test_dist.py` holds
72
+ # this list to that script.
73
+ [tool.hatch.build.targets.sdist]
74
+ include = [
75
+ "/src/imfeel",
76
+ "/pyproject.toml",
77
+ "/LICENSE",
78
+ # The `readme` above: the build fails without it.
79
+ "/README-pypi.md",
80
+ ]
81
+ exclude = ["**/__pycache__", "**/*.pyc"]
82
+
83
+ [tool.black]
84
+ line-length = 100
85
+ target-version = ["py311"]
86
+
87
+ [tool.ruff]
88
+ line-length = 100
89
+ target-version = "py311"
90
+
91
+ [tool.ruff.lint]
92
+ select = ["E", "F", "I", "UP", "B"]
93
+
94
+ [tool.ruff.lint.isort]
95
+ # tests/harness.py is imported as a top-level module by the tests.
96
+ known-first-party = ["imfeel", "harness"]
97
+
98
+ [tool.mypy]
99
+ python_version = "3.11"
100
+ strict = true
101
+ ignore_missing_imports = true
102
+ mypy_path = "src"
103
+
104
+ [tool.pytest.ini_options]
105
+ testpaths = ["tests"]
106
+ # So the suite runs without an editable install (none is possible offline).
107
+ pythonpath = ["src"]
108
+ filterwarnings = ["error"]
@@ -0,0 +1,258 @@
1
+ """imfeel: a consistent look and feel for Dear ImGui apps.
2
+
3
+ A small library of conventions, not a framework: plain functions and begin/end
4
+ context managers that always call ImGui the same way. The public API is filled
5
+ in by the component modules as they land; exports here are additive.
6
+
7
+ Theme and palette: `Palette`, `THEMES`, `apply_style`, `use_palette`,
8
+ `current_palette`. Fonts and sizes: `em`, `load_fonts`, `DEFAULT_RENDERING`.
9
+ Round two: `scroll_window`, the value controls (`slider_float`, `combo`, `key_step`, ...),
10
+ formulas on by default (`read_markdown`, `FORMULA_SCALE`), and the audited row colours
11
+ (`header_colours`, `combo_contrasts`). Constants that are tuning values of one module
12
+ (a floor, a row's height in ems) stay in it: `imfeel.palette.LINK_FLOOR`.
13
+ """
14
+
15
+ from __future__ import annotations
16
+
17
+ from .extras import (
18
+ CTRL_ENTER_SUBMITS,
19
+ Help,
20
+ Notice,
21
+ Revert,
22
+ Tone,
23
+ begin_context_menu,
24
+ ellipsis,
25
+ flat_line,
26
+ hint_colour,
27
+ multiline_input,
28
+ notice,
29
+ path_tail,
30
+ wants_send,
31
+ )
32
+ from .fonts import (
33
+ BASE_FONT_PX,
34
+ DEFAULT_RENDERING,
35
+ FORMULA_AIR,
36
+ FORMULA_AIR_PER_SCALE,
37
+ FORMULA_LINES,
38
+ FORMULA_SCALE,
39
+ FORMULA_SCALE_STEPS,
40
+ UI_FONT_PX,
41
+ Fonts,
42
+ RenderingConfig,
43
+ Role,
44
+ RoleStyle,
45
+ Slot,
46
+ em,
47
+ formula_scale,
48
+ imscribe_palette,
49
+ imscribe_theme,
50
+ load_fonts,
51
+ load_typeset_fonts,
52
+ load_ui_fonts,
53
+ math_fences_as_display,
54
+ math_ready,
55
+ read_markdown,
56
+ role_pitch,
57
+ role_px,
58
+ )
59
+ from .listview import Selection, list_view
60
+ from .palette import (
61
+ APART_FLOOR,
62
+ BAR_FLOOR,
63
+ BAR_ON_FILL_FLOOR,
64
+ COLOUR_ROLES,
65
+ DEFAULT_PALETTE,
66
+ DEFAULT_THEME,
67
+ FRAME_FLOOR,
68
+ HOVERED_FLOOR,
69
+ RGBA,
70
+ SELECTED_FLOOR,
71
+ TEXT_FLOOR,
72
+ THEMES,
73
+ ButtonColours,
74
+ HeaderColours,
75
+ LinkInks,
76
+ Palette,
77
+ WellColours,
78
+ button_colours,
79
+ composite,
80
+ contrast_ratio,
81
+ get_theme,
82
+ header_colours,
83
+ header_surfaces,
84
+ link_inks,
85
+ mix,
86
+ rgb,
87
+ rgba8,
88
+ scrollbar_alphas,
89
+ to_imvec4,
90
+ to_u32,
91
+ well_colours,
92
+ with_alpha,
93
+ )
94
+ from .scroll import (
95
+ SCROLL_WINDOW_FLAGS,
96
+ ScrollArea,
97
+ edge_scroll,
98
+ follow_tail,
99
+ scroll_area,
100
+ scroll_window,
101
+ wheels_here,
102
+ )
103
+ from .shortcuts import Scope, copy_shortcut, escape_closes, shortcut
104
+ from .theme import (
105
+ METRICS,
106
+ Contrast,
107
+ StyleMetrics,
108
+ apply_style,
109
+ combo_contrasts,
110
+ current_palette,
111
+ resolve_palette,
112
+ style_colours,
113
+ use_palette,
114
+ )
115
+ from .values import (
116
+ COARSE,
117
+ FINE,
118
+ SLIDER_STEPS,
119
+ Axis,
120
+ combo,
121
+ drag_float,
122
+ drag_int,
123
+ key_step,
124
+ slider_float,
125
+ slider_int,
126
+ vslider_float,
127
+ vslider_int,
128
+ )
129
+ from .widgets import (
130
+ button,
131
+ dialog_style,
132
+ help_mark,
133
+ link,
134
+ safe_button,
135
+ section,
136
+ small_button,
137
+ small_button_line,
138
+ small_button_width,
139
+ )
140
+
141
+ __version__ = "0.1.0"
142
+
143
+ __all__ = [
144
+ "CTRL_ENTER_SUBMITS",
145
+ "Help",
146
+ "Notice",
147
+ "Revert",
148
+ "Tone",
149
+ "begin_context_menu",
150
+ "ellipsis",
151
+ "flat_line",
152
+ "hint_colour",
153
+ "multiline_input",
154
+ "notice",
155
+ "path_tail",
156
+ "wants_send",
157
+ "Selection",
158
+ "list_view",
159
+ "ScrollArea",
160
+ "edge_scroll",
161
+ "follow_tail",
162
+ "SCROLL_WINDOW_FLAGS",
163
+ "scroll_area",
164
+ "scroll_window",
165
+ "wheels_here",
166
+ "COARSE",
167
+ "FINE",
168
+ "SLIDER_STEPS",
169
+ "Axis",
170
+ "combo",
171
+ "drag_float",
172
+ "drag_int",
173
+ "key_step",
174
+ "slider_float",
175
+ "slider_int",
176
+ "vslider_float",
177
+ "vslider_int",
178
+ "Scope",
179
+ "copy_shortcut",
180
+ "escape_closes",
181
+ "shortcut",
182
+ "button",
183
+ "dialog_style",
184
+ "help_mark",
185
+ "link",
186
+ "safe_button",
187
+ "section",
188
+ "small_button",
189
+ "small_button_line",
190
+ "small_button_width",
191
+ "APART_FLOOR",
192
+ "BAR_FLOOR",
193
+ "BAR_ON_FILL_FLOOR",
194
+ "BASE_FONT_PX",
195
+ "COLOUR_ROLES",
196
+ "DEFAULT_PALETTE",
197
+ "DEFAULT_RENDERING",
198
+ "DEFAULT_THEME",
199
+ "FORMULA_AIR",
200
+ "FORMULA_AIR_PER_SCALE",
201
+ "FORMULA_LINES",
202
+ "FORMULA_SCALE",
203
+ "FORMULA_SCALE_STEPS",
204
+ "FRAME_FLOOR",
205
+ "HOVERED_FLOOR",
206
+ "METRICS",
207
+ "RGBA",
208
+ "SELECTED_FLOOR",
209
+ "TEXT_FLOOR",
210
+ "THEMES",
211
+ "UI_FONT_PX",
212
+ "ButtonColours",
213
+ "Contrast",
214
+ "Fonts",
215
+ "HeaderColours",
216
+ "LinkInks",
217
+ "Palette",
218
+ "RenderingConfig",
219
+ "Role",
220
+ "RoleStyle",
221
+ "Slot",
222
+ "StyleMetrics",
223
+ "WellColours",
224
+ "__version__",
225
+ "apply_style",
226
+ "button_colours",
227
+ "combo_contrasts",
228
+ "composite",
229
+ "contrast_ratio",
230
+ "current_palette",
231
+ "em",
232
+ "formula_scale",
233
+ "get_theme",
234
+ "header_colours",
235
+ "header_surfaces",
236
+ "imscribe_palette",
237
+ "imscribe_theme",
238
+ "link_inks",
239
+ "load_fonts",
240
+ "load_typeset_fonts",
241
+ "load_ui_fonts",
242
+ "math_fences_as_display",
243
+ "math_ready",
244
+ "mix",
245
+ "read_markdown",
246
+ "resolve_palette",
247
+ "rgb",
248
+ "rgba8",
249
+ "role_pitch",
250
+ "role_px",
251
+ "scrollbar_alphas",
252
+ "style_colours",
253
+ "to_imvec4",
254
+ "to_u32",
255
+ "use_palette",
256
+ "well_colours",
257
+ "with_alpha",
258
+ ]
@@ -0,0 +1,93 @@
1
+ Copyright 2006 The Inconsolata Project Authors (https://github.com/cyrealtype/Inconsolata)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,22 @@
1
+ """The imfeel demo: one window per component family, every default shown and labelled.
2
+
3
+ Run it with `python -m imfeel.demo` (`make demo`); `--screenshot PATH` renders and exits
4
+ (`make shot`). The pages are in `imfeel.demo.pages`; the demo is the specification.
5
+ """
6
+
7
+ from __future__ import annotations
8
+
9
+ from .app import build_runner, main
10
+ from .pages import PAGES, PAGES_BY_KEY, Page, all_declared
11
+ from .state import AppState, Demo
12
+
13
+ __all__ = [
14
+ "PAGES",
15
+ "PAGES_BY_KEY",
16
+ "AppState",
17
+ "Demo",
18
+ "Page",
19
+ "all_declared",
20
+ "build_runner",
21
+ "main",
22
+ ]
@@ -0,0 +1,7 @@
1
+ """`python -m imfeel.demo`."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from . import main
6
+
7
+ raise SystemExit(main())