Commit graph

10340 commits

Author SHA1 Message Date
bunnie
30c752db75 bump the loader's font tables 2023-07-05 13:38:28 +08:00
bunnie
ec3fc70a66 rework the font rendering engine and style macros to support Tall
this reworks the necessary routines on the font rendering engine
and within the style selection macros to support the new Tall font.
2023-07-05 13:37:41 +08:00
bunnie
aab25f2d53 add Tall font face and support for 32x32 bitmaps
Thanks to @samblenny for getting the ball rolling on this.

This commit adds a "tall" font face which is somewhere in betwee
the Regular size (12 pts) and 2x Small size (18 pts). This is
a compromise between text density and readability that has been
missing for some time from the UI.

The 32x32 glyph support is "hacked in", in that an extra flag
has been added to support this special case, rather than either
(a) making the library more generic (e.g. supporting 8x, 16x, 32x, 64x
glyphs) or (b) adding more metadata to the font libraries so that
the bitmap pattern is automatically associated with the font (right
now the parameters are set by hand in blitstr2/fonts.rs).

This is a violation of the "zero, one, many" principle in coding,
but I'm waiving that because (a) 64x glyphs don't make sense on
our system...you're not going to be creating posters and headlines
on this device (ha ha I say this today, tomorrow I will get a PR
for a poster editor app that absolutely needs 64x glyphs) and (b)
the font subsystem is, at least for now, a fairly mature and
well-tested code base so a minor futzing seems more appropriate
than ripping everything out.

The point at which things should be greatly refactored is when
we consider supporting right-to-left scripts or scripts that
require complex ligatures. But I think for now the system as
writ covers 80% of humanity's language needs acceptably
(but not perfectly).
2023-07-05 12:43:44 +08:00
Vihaan Jim
6f86f3b115 Allow logging from spawn
This allows the spawn (i.e. new process) to use log. Firstly,
xous-api-log was changed to allow no_std when the target os is
xous (this is done using a feature). Then, in spawn itself, an
AtomicU32 is moved into memory as a replacement for
XOUS_LOGGER_CONNECTION, which is not in .text and is thus not in the
stub file.
2023-07-04 15:27:38 -04:00
Vihaan Jim
dc9411669c Correctly set process.inner on riscv
This changes the process.inner.pid to the correct PID. Before, it was
simply 1. This lead to problems, for example when sending messages
where an assert checks to make sure that the current PID and the
process PID are the same. Now, you can send messages from a new process.
2023-07-04 15:22:44 -04:00
bunnie
afc8d96283
Merge pull request #395 from nworbnhoj/tls
Tls tidy-up
2023-07-04 00:57:56 -07:00
nworbnhoj
9f0b607fde tidy-up 2023-07-04 17:19:04 +10:00
nworbnhoj
1ffe49106d tidy-up 2023-07-04 17:11:51 +10:00
nworbnhoj
1a8c5fb080 update shellchat net tls notes 2023-07-04 17:11:25 +10:00
nworbnhoj
26f8628c18 delete redundant file 2023-07-04 17:10:27 +10:00
nworbnhoj
0725187cee tls add locale for tls.probe_done 2023-07-04 17:09:44 +10:00
bunnie
2f58137e29 cargo started storing its data somewhere new
The new location makes a lot more *sense* (previously the
cache said 'git' when it was actually crates.io) but
it broke the verifier. This is now fixed.
2023-07-04 11:27:02 +08:00
bunnie
5d34ffccbf bump lockfile 2023-07-04 11:26:50 +08:00
bunnie
4ac979f0ab update pins, again 2023-07-04 11:20:12 +08:00
bunnie
2ba77894bd it helps to test against the local copy :P 2023-07-04 11:19:12 +08:00
bunnie
c9f8f2681b update version pins 2023-07-04 11:09:13 +08:00
bunnie
adbb168343 strip out vestiges of unused assembly code in kernel package 2023-07-04 11:06:38 +08:00
bunnie
f0f420d610
Merge pull request #392 from Foundation-Devices/remove-arm-assembly
xous-rs: Remove arm assembly code
2023-07-03 19:57:45 -07:00
bunnie
539b8723f1 need --no-verify on the toolchain installation as well 2023-07-04 10:46:43 +08:00
bunnie
5a111e68c2 bump lockfile 2023-07-04 10:43:45 +08:00
bunnie
c89e198e91 uhh...why did that --no-verify change not save. oh well, try again. 2023-07-04 10:43:26 +08:00
bunnie
3bd163034e attempt to fix gh workflow 2023-07-04 10:40:23 +08:00
bunnie
ae1adbfedd fix template to match manual patch-ups on config flags 2023-07-04 10:32:15 +08:00
bunnie
22e0e06625 check in inital artifacts, but leave the system inert
more hacking is necessary before we can really run these scripts
2023-07-04 10:29:43 +08:00
bunnie
c8accf85d9
Merge pull request #394 from nworbnhoj/tls
tls library
2023-07-03 19:20:05 -07:00
nworbnhoj
4e0298c17a include broken tls::rota::public_key() 2023-07-04 07:36:47 +10:00
nworbnhoj
a5ef4585a8 fix tls::Tls::save_cert() 2023-07-04 07:29:37 +10:00
nworbnhoj
a68ae232b3 rename snapchat net tls trusted to net tls list 2023-07-04 07:17:00 +10:00
nworbnhoj
527ad433ba rename snapchat net tls delete to net tls deleteall 2023-07-04 07:15:35 +10:00
nworbnhoj
5c9905a0be add progress bar to snapchat net tls mozilla 2023-07-04 05:51:59 +10:00
nworbnhoj
044fed1096 tls tidy-up 2023-07-03 19:01:05 +10:00
nworbnhoj
211e27b759 refine handling of tls rota Certificate name_constraints (slightly) 2023-07-03 18:49:56 +10:00
nworbnhoj
ffb573f5dc implement tls::rota::pddb_key 2023-07-03 17:13:01 +10:00
nworbnhoj
a4de987eb8 show fingerprint in Tls::check_trusted() modal 2023-07-03 07:49:07 +10:00
nworbnhoj
2311ef29d5 tls replace std::fs with pddb::Pddb 2023-07-03 06:21:13 +10:00
Vihaan Jim
fe73bb40e7 Merge branch 'main' of https://github.com/betrusted-io/xous-core 2023-06-29 19:46:42 -04:00
Vihaan Jim
f2b1f7ef09 Allow building a custom spawn binary
For the moment I have replaced test-spawn/spawn with app-loader/spawn
in Cargo.toml, but I might end up changing the name eventually.
2023-06-29 19:41:53 -04:00
nworbnhoj
0698d5003e rename pddb dict to tls.trusted 2023-06-30 05:01:40 +10:00
nworbnhoj
f69b247398 fix tls feature dependency on ring 2023-06-29 20:28:23 +10:00
nworbnhoj
1e95167f47 implement shellchat net tls delete 2023-06-29 14:41:25 +10:00
nworbnhoj
0545a08c8e remove redundant use rustls from net_cmd.rs 2023-06-29 13:13:01 +10:00
nworbnhoj
53b002ad9c return count of trusted certificates from shellchat net tls probe & shellchat net tls mozilla 2023-06-29 13:10:28 +10:00
nworbnhoj
579f2c36e8 tls implement rota add_der_header() 2023-06-29 12:11:41 +10:00
nworbnhoj
7cef80e193 tls remove der header from captured RustlsOwnedTrustAnchor fields 2023-06-29 11:00:32 +10:00
nworbnhoj
2f042cff70 implement tls locales/i18n.json en en-tts 2023-06-28 13:37:45 +10:00
Vihaan Jim
a37c06fe1f Fix alignment
The kernel now at least attempts to load the program, although it
fails with an InstructionPageFault (at least when you specify a CID of
6 for spawn, the weird CID error still persists).
2023-06-27 18:55:54 -04:00
nworbnhoj
3acc43f2b0 checkin libs/tls/src/cmd.rs 2023-06-28 06:07:46 +10:00
nworbnhoj
b8b591401f reconfigure [features] tls rootCA & websocket 2023-06-28 06:05:44 +10:00
Jean-Pierre De Jesus DIAZ
054d4831db
xous-rs: Remove arm assembly code
It was not used and it probably won't get used in the future

Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-06-27 16:56:06 +02:00
nworbnhoj
0e85ff2aac refactor tls::rota 2023-06-27 19:35:51 +10:00