You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

106 lines
4.1 KiB
Markdown

# cjktty-patches
Patches from [Gentoo-zh/linux-cjktty](https://github.com/Gentoo-zh/linux-cjktty) with minor changes.
- Starting with linux 5.10, the kernel config option `CONFIG_FONT_16x16_CJK` has been renamed to `CONFIG_FONT_CJK_16x16`.
- To have a larger font on high resolution screens, you probably want to apply 32x32 font data patch.
- The patch built-in fonts expect to work with 8x16 or 16x32 fonts. When changing to other font sizes, characters may not display correctly.
## Changes
### 2023.10.30 / 6.6
- Resync for linux-6.6.y
- Update font data to Unifont 15.1.04
- Update double width tables to Unicode 15.1.0
### 2023.06.26 / 6.4
- Resync for linux-6.4.y
- Update font data to Unifont 15.0.06
### 2023.04.24 / 6.3
- Resync for linux-6.3.y
- Use saner names for more scroll variables & cache row count (upstream)
- [torvalds/linux@424c82a](https://github.com/torvalds/linux/commit/424c82af26b1b8ca6c0be06987a4e6d18c9a92dd)
- [torvalds/linux@bf8baa0](https://github.com/torvalds/linux/commit/bf8baa00668dbc4fcfca5ac49ae8a3059c795e4e)
### 2022.10.03 / 6.0
- Resync for linux-6.0.y
- Update font data to Unifont 15.0.01
- Update double width tables to Unicode 15.0.0
- Minor cleanups
<details>
<summary>v5.x (click to expand)</summary>
### 2022.08.01 / 5.19
- Resync for linux-5.19.y
- Update font data to Unifont 14.0.04
- Update double width tables to Unicode 14.0.0
- Fix cutoff issue for double width glyphs from Unifont (e.g.`① ② ③ `)
- Avoid unnecessary check of characters width
- Remove workaround from [Gentoo-zh/linux-cjktty@6caf83a](https://github.com/Gentoo-zh/linux-cjktty/commit/6caf83a638886220d1e1880c92e8b18243c3965a)
### 2022.05.23 / 5.18
- Resync for linux-5.18.y
- Fix build warnings with GCC 12 (`-Wbidi-chars=unpaired`)
### 2022.03.21 / 5.17
- Resync for linux-5.17.y
- Update font data to Unifont 14.0.02
- Revert scroll acceleration code (upstream)
- [torvalds/linux@1148836](https://github.com/torvalds/linux/commit/1148836fd3226c20de841084aba24184d4fbbe77)
### 2022.01.10 / 5.16
- Resync for linux-5.16.y
- Remove scroll acceleration code (upstream)
- [torvalds/linux@b3ec8cd](https://github.com/torvalds/linux/commit/b3ec8cdf457e5e63d396fe1346cc788cf7c1b578)
### 2021.09.17 / 5.14.5
- Update font data to Unifont 14.0.01
- Replace original 16x16 font with Unifont for better unicode support
### 2021.02.22 / 5.11
- Resync for linux-5.11.y
- Update CJK 32x32 font data to Unifont 13.0.06
- Reduce checkpatch.pl complaints
- Remove charcount changes since it has been implemented (upstream)
- [torvalds/linux@4ee5730](https://github.com/torvalds/linux/commit/4ee573086bd88ff3060dda07873bf755d332e9ba)
- [torvalds/linux@a1ac250](https://github.com/torvalds/linux/commit/a1ac250a82a5e97db71f14101ff7468291a6aaef)
### 2020.12.14 / 5.10
- Resync for linux-5.10.y
- Update glyphs for some Chinese punctuation marks
- Support display rotation
- Support `setfont` (Note: different font size can cause issues with this patch which expects to work with 8x16 / 16x32 font)
- Fix display for some single width characters
- Fix line wrap for double width characters (<https://github.com/zhmars/cjktty-patches/issues/1>)
- Workaround from [Gentoo-zh/linux-cjktty@6caf83a](https://github.com/Gentoo-zh/linux-cjktty/commit/6caf83a638886220d1e1880c92e8b18243c3965a)
- Support 32x32 font size for high resolution screens (experimental, make sure the font data patch is applied)
### 2020.09.18 / 5.8.10
- Resync for linux-5.8.10
- Remove soft scrollback code (upstream)
- [torvalds/linux@5014547](https://github.com/torvalds/linux/commit/50145474f6ef4a9c19205b173da6264a644c7489)
</details>
## Credits
- [youbest](http://blog.chinaunix.net/uid/436750.html) for [original univt patches](https://github.com/zhmars/univt-patches/tree/master/v2.6)
- [Gentoo-zh/linux-cjktty](https://github.com/Gentoo-zh/linux-cjktty) for original cjktty patches
- [AOSC-Dev/aosc-os-abbs](https://github.com/AOSC-Dev/aosc-os-abbs) for some univt's modifications
- [Unifont](https://savannah.gnu.org/projects/unifont) for font data
- [Terminus Font](http://terminus-font.sourceforge.net) for font data