| 1 | # Changelog |
| 2 | All notable changes to this project will be documented in this file. |
| 3 | |
| 4 | The format is based on [Keep a |
| 5 | Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to |
| 6 | [Semantic Versioning](http://semver.org/spec/v2.0.0.html). |
| 7 | |
| 8 | ## [Unreleased] |
| 9 | |
| 10 | ## [v5.0.0] - 2026-02-17 |
| 11 | |
| 12 | ### Changed |
| 13 | - Major update before TeX Live 2026. This update includes many changes that are |
| 14 | backwards incompatible. |
| 15 | - Updated requirements: |
| 16 | - Now requires `l3kernel` version 2023-11-01. |
| 17 | - No longer incompatible with the `scalefnt` package. |
| 18 | - The documentation no longer uses the terms "font step" and "font scale" to |
| 19 | describe the font size. All package features which relied on the "font step" |
| 20 | or "font scale" have been removed or redesigned. In hindsight, I do not find |
| 21 | these concepts to be particularly helpful for users. Moreover, this had led |
| 22 | to large package feature bloat. |
| 23 | - The documentation has been completely rewritten. |
| 24 | - Improved performance in the package code added to the `selectfont` hook. |
| 25 | - Keys `<font size command>/scale` renamed to |
| 26 | `<font size command>/size-normalsize-ratio`. |
| 27 | - All font size commands defined by this package now issue an error instead of |
| 28 | a warning if used in math mode. |
| 29 | - Improved the warning message in `\fontscalesetup` when the lengths of the |
| 30 | font sizes are not correctly ordered from `\tiny` to `\Huge`. |
| 31 | - `\currentfontsize`, `\currentfontbaselineskip`, and `\currentnormalsize` are |
| 32 | now proper lengths instead of expandable commands. This is more convenient |
| 33 | when performing computations. |
| 34 | - `\setfontsize` now has an `o`- instead of an `s`-type argument with a new |
| 35 | functionality. |
| 36 | - `\printfontsizecommand` now prints the command name in `\ttfamily`. |
| 37 | |
| 38 | ### Removed |
| 39 | - Files: |
| 40 | - `fontscale-v3.sty` (no support for versions older than 5.0.0) |
| 41 | - `fontscale-code.pdf` |
| 42 | - Keys: |
| 43 | - `typographic-scale/classic-10pt` |
| 44 | - `typographic-scale/classic-11pt` |
| 45 | - `typographic-scale/classic-12pt` |
| 46 | - `typographic-scale/classic-10bp` |
| 47 | - `typographic-scale/classic-11bp` |
| 48 | - `typographic-scale/classic-12bp` |
| 49 | - `typographic-scale/classic-10dd` |
| 50 | - `typographic-scale/classic-11dd` |
| 51 | - `typographic-scale/classic-12dd` |
| 52 | - `typographic-scale/classic-10nd` |
| 53 | - `typographic-scale/classic-11nd` |
| 54 | - `typographic-scale/classic-12nd` |
| 55 | - `classic-10pt` |
| 56 | - `classic-11pt` |
| 57 | - `classic-12pt` |
| 58 | - `classic-10bp` |
| 59 | - `classic-11bp` |
| 60 | - `classic-12bp` |
| 61 | - `classic-10dd` |
| 62 | - `classic-11dd` |
| 63 | - `classic-12dd` |
| 64 | - `classic-10nd` |
| 65 | - `classic-11nd` |
| 66 | - `classic-12nd` |
| 67 | - `magscale` (lacks use case) |
| 68 | - Commands: |
| 69 | - `\currentfontstep`, `\currentfontscale` |
| 70 | - `\setfontstep`, `\setfontscale` |
| 71 | - `\scalefont` (redundant with `\setfontsize` and `\currentfontsize`) |
| 72 | - `\setfontsizebaselineskip` (redundant with `\setfontsize`) |
| 73 | - `\setfontbaselineskip` `s`-type argument (redundant with |
| 74 | `\currentfontbaselineskip`) |
| 75 | - `\printfontsizeparameters`, `\printallfontsizeparameters` |
| 76 | - Variables: |
| 77 | - `\c_fontscale_<font size command>_step_fp` |
| 78 | - `\c_fontscale_normalsize_scale_fp` |
| 79 | - `\l_fontscale_<font size command>_scale_fp` |
| 80 | - `\l_fontscale_step_fp`, `\l_fontscale_scale_fp` |
| 81 | |
| 82 | ### Added |
| 83 | - Keys: |
| 84 | - `typographic-scale/classic` |
| 85 | - `classic` |
| 86 | - `classic/base` |
| 87 | - `classic/point` |
| 88 | - `\stepfontsize` |
| 89 | |
| 90 | ## [v4.2.0] - 2025-04-30 |
| 91 | |
| 92 | ### Added |
| 93 | - Key `magscale` |
| 94 | |
| 95 | ### Changed |
| 96 | - The documentation now states that: |
| 97 | - The key `<font size command>/size` issues a warning when overwriting the |
| 98 | font size set by the key `<font size command>/scale`. |
| 99 | - The key `<font size command>/baselineskip` issues a warning when |
| 100 | overwriting the font baselineskip set by the key |
| 101 | `<font size command>/baselineskip-size-ratio`. |
| 102 | |
| 103 | ## [v4.1.0] - 2025-04-04 |
| 104 | |
| 105 | ### Added |
| 106 | - Keys: |
| 107 | - `typographic-scale/classic-10bp` |
| 108 | - `typographic-scale/classic-11bp` |
| 109 | - `typographic-scale/classic-12bp` |
| 110 | - `typographic-scale/classic-10dd` |
| 111 | - `typographic-scale/classic-11dd` |
| 112 | - `typographic-scale/classic-12dd` |
| 113 | - `typographic-scale/classic-10nd` |
| 114 | - `typographic-scale/classic-11nd` |
| 115 | - `typographic-scale/classic-12nd` |
| 116 | - `classic-10bp` |
| 117 | - `classic-11bp` |
| 118 | - `classic-12bp` |
| 119 | - `classic-10dd` |
| 120 | - `classic-11dd` |
| 121 | - `classic-12dd` |
| 122 | - `classic-10nd` |
| 123 | - `classic-11nd` |
| 124 | - `classic-12nd` |
| 125 | - `<font size command>/baselineskip-size-ratio` |
| 126 | - `\currentnormalsize` |
| 127 | |
| 128 | ### Changed |
| 129 | - Improved performance in the package code added to the `selectfont` hook. |
| 130 | - The documentation now states that: |
| 131 | - `fontscale` does not load any other packages. |
| 132 | - `\currentfontstep`, `\currentfontscale`, and `\currentfontsize` do not |
| 133 | expand `\f@size`. |
| 134 | |
| 135 | ### Fixed |
| 136 | - The documentation now correctly states that the classic typographic scale |
| 137 | includes font size `30`. (`30` was not included in some older versions of The |
| 138 | Elements of Typographic Style by Robert Bringhurst.) |
| 139 | - The package now correctly uses `\dim_use:N` and `\skip_use:N` when using |
| 140 | `expl3` `dim` and `skip` variables in `LaTeX2e` commands. |
| 141 | - Removed incorrect code comment regarding compatibility with the `microtype` |
| 142 | package. |
| 143 | - The internal variables that store the value of the keys |
| 144 | `<font size command>/scale`, `<font size command>/size`, and |
| 145 | `<font size command>/baselineskip` now correctly store the value of the |
| 146 | evaluated floating point/dimen/skip expression. This should result in more |
| 147 | consistent behavior if `\fontscalesetup` is used again. |
| 148 | |
| 149 | ## [v4.0.1] - 2025-03-11 |
| 150 | |
| 151 | ### Changed |
| 152 | - The package now issues a package error if the font size would be 2048pt or |
| 153 | greater. |
| 154 | |
| 155 | ### Fixed |
| 156 | - Fixed a rare issue where `\fontscalesetup` would not issue a package error if |
| 157 | the font size of a font size command was `0pt` and the value of the key |
| 158 | `typographic-scale` was `musical`. |
| 159 | |
| 160 | ## [v4.0.0] - 2025-03-02 |
| 161 | |
| 162 | ### Added |
| 163 | - `fontscale` version 3 can be used by declaring `\usepackage{fontscale}[=v3]`. |
| 164 | - `fontscale-v3.sty` |
| 165 | |
| 166 | ### Removed |
| 167 | - The package keys and commands that take a dimen or skip expression as a value |
| 168 | or argument no longer append a default unit of `pt` and remove extra trailing |
| 169 | tokens, if any. (This feature had relied on exploiting `expl3` implementation |
| 170 | details.) |
| 171 | |
| 172 | ### Changed |
| 173 | - `fontscale` is no longer compatible with the `scalefnt` package. |
| 174 | - The keys `<font size command>` are now shortcuts for the keys |
| 175 | `<font size command>/size`. (The previous functionality no longer makes |
| 176 | syntactic sense given the removal of default unit support.) |
| 177 | - Renamed the document commands using the recommended all-lowercase convention: |
| 178 | - `\CurrentFontStep` to `\currentfontstep` |
| 179 | - `\CurrentFontScale` to `\currentfontscale` |
| 180 | - `\CurrentFontSize` to `\currentfontsize` |
| 181 | - `\CurrentFontBaselineskip` to `\currentfontbaselineskip` |
| 182 | - `\SetFontStep` to `\setfontstep` |
| 183 | - `\SetFontScale` to `\setfontscale` |
| 184 | - `\SetFontSize` to `\setfontsize` |
| 185 | - `\ScaleFont` to `\scalefont` |
| 186 | - `\SetFontSizeBaselineskip` to `\setfontsizebaselineskip` |
| 187 | - `\SetFontBaselineskip` to `\setfontbaselineskip` |
| 188 | - `\PrintFontSizeParameters` to `\printfontsizeparameters` |
| 189 | - `\PrintAllFontSizeParameters` to `\printallfontsizeparameters` |
| 190 | - `\PrintSampleText` to `\printsampletext` |
| 191 | - `\PrintFontSizeCommand` to `\printfontsizecommand` |
| 192 | |
| 193 | ## [v3.1.2] - 2025-02-13 |
| 194 | |
| 195 | ### Fixed |
| 196 | - The package now correctly requires `l3kernel` version 2023-11-09. |
| 197 | |
| 198 | ## [v3.1.1] - 2025-02-06 |
| 199 | |
| 200 | ### Changed |
| 201 | - The package no longer removes extra trailing tokens from user input into an |
| 202 | integer expression. (This feature had relied on exploiting an implementation |
| 203 | detail.) |
| 204 | |
| 205 | ## [v3.1.0] - 2025-02-03 |
| 206 | |
| 207 | ### Added |
| 208 | - `fontscale-code.tex` |
| 209 | - `fontscale-code.pdf` |
| 210 | |
| 211 | ## [v3.0.6] - 2025-01-17 |
| 212 | |
| 213 | ### Changed |
| 214 | - `\SetFontStep` now rounds the new font step to 5 decimal places only when |
| 215 | testing if it equals the font step of any font size commnad from `\tiny` to |
| 216 | `\Huge`. |
| 217 | |
| 218 | ## [v3.0.5] - 2025-01-03 |
| 219 | |
| 220 | ### Changed |
| 221 | - Clarified some package functionalities in the documentation: |
| 222 | - The new font baselineskip set by `\ScaleFont` has no stretch and shrink |
| 223 | components. |
| 224 | - `\ScaleFont` is intended as a more robust alternative to `\scalefont` from |
| 225 | the `scalefnt` package. |
| 226 | - `\SetFontSizeBaselineskip` is intended as a more robust alternative to |
| 227 | `\fontsize` + `\selectfont`. |
| 228 | - `\PrintAllFontSizeParameters`, `\PrintSampleText`, and |
| 229 | `\PrintFontSizeCommand` cannot be used in math mode. |
| 230 | - Code improvements: |
| 231 | - The package messages are now defined first. |
| 232 | - The package now regularly uses `\dim_to_fp:n` when handling dimensions |
| 233 | within floating point expressions. |
| 234 | |
| 235 | ## [v3.0.4] - 2024-12-22 |
| 236 | |
| 237 | ### Changed |
| 238 | - `\PrintFontSizeParameters` and `\PrintAllFontSizeParamters` now print the |
| 239 | font step and font scale rounded to 5 decimal places. (`\CurrentFontStep` and |
| 240 | `\CurrentFontScale` are unchanged.) |
| 241 | |
| 242 | ## [v3.0.3] - 2024-12-09 |
| 243 | |
| 244 | ### Changed |
| 245 | - The documentation now displays code in a light-gray background using the |
| 246 | `tcolorbox` package. This subtle contrast enhances readability. |
| 247 | |
| 248 | ## [v3.0.2] - 2024-11-25 |
| 249 | |
| 250 | ### Changed |
| 251 | - Keys and commands that take an integer expression as a value or argument now |
| 252 | remove the extra tokens that were not part of the integer expression. |
| 253 | - Added more explanatory code comments. |
| 254 | |
| 255 | ## [v3.0.1] - 2024-10-20 |
| 256 | |
| 257 | ### Changed |
| 258 | - Improved the error message when the font size is not a positive length. |
| 259 | - Documentation improvements. |
| 260 | |
| 261 | ## [v3.0.0] - 2024-10-05 |
| 262 | |
| 263 | ### Added |
| 264 | - Added new `expl3` public variables that store the current font step, font |
| 265 | scale, font size, and font baselineskip, respectively. They are set in the |
| 266 | `selectfont` hook. |
| 267 | - `\l_fontscale_step_fp` |
| 268 | - `\l_fontscale_scale_fp` |
| 269 | - `\l_fontscale_size_dim` |
| 270 | - `\l_fontscale_baselineskip_skip` |
| 271 | |
| 272 | ### Changed |
| 273 | - This update includes some changes that are backwards incompatible. |
| 274 | - The package commands now use the above variables instead of `\f@size` and |
| 275 | `\f@baselineskip`. This changes the behavior of `\CurrentFontStep`, |
| 276 | `\CurrentFontScale`, and `\CurrentFontSize` within the second argument of |
| 277 | `\fontsize` because `\fontsize` sets `\f@size` to the new font size before |
| 278 | expanding its second argument. |
| 279 | - `\PrintFontSizeCommand` no longer tests if the current font baselineskip |
| 280 | equals the font baselineskip of any font size command from `\tiny` to |
| 281 | `\Huge`. |
| 282 | - `\SetFontStep` now rounds the new font step to 5 decimal places. This is |
| 283 | important when checking if it equals the font step of any font size command |
| 284 | from `\tiny` to `\Huge`. |
| 285 | - A default `pt` is now appended only in user-level commands, not in internal |
| 286 | `expl3` functions. |
| 287 | - `\fontscalesetup` now processes the keys slightly faster when the key |
| 288 | `<font size command>/baselineskip` is not set. |
| 289 | - Documentation improvements. |
| 290 | |
| 291 | ### Removed |
| 292 | - `\CurrentFontSizeCommand` (redundant with `\CurrentFontSize` and |
| 293 | `\CurrentFontBaselineskip`) |
| 294 | |
| 295 | ## [v2.4.0] - 2024-09-10 |
| 296 | |
| 297 | ### Changed |
| 298 | - `\fontscalesetup` no longer issues a warning if the lengths of the font |
| 299 | baselineskips are not ordered from `\tiny` to `\Huge`. |
| 300 | - Code improvements. |
| 301 | |
| 302 | ## [v2.3.0] - 2024-09-06 |
| 303 | |
| 304 | ### Changed |
| 305 | - The package commands no longer check if the font baselineskip is less than |
| 306 | the font size. |
| 307 | |
| 308 | ## [v2.2.0] - 2024-08-29 |
| 309 | |
| 310 | ### Changed |
| 311 | - Improved the messages issued by this package. |
| 312 | |
| 313 | ### Added |
| 314 | - `\SetFontBaselineskip` |
| 315 | |
| 316 | ## [v2.1.0] - 2024-08-12 |
| 317 | |
| 318 | ### Changed |
| 319 | - Documentation improvements. |
| 320 | |
| 321 | ### Added |
| 322 | - `\CurrentFontSizeCommand` |
| 323 | |
| 324 | ## [v2.0.0] - 2024-08-02 |
| 325 | |
| 326 | ### Changed |
| 327 | - This update includes many changes that are backwards incompatible. |
| 328 | - The documentation has been completely rewritten. |
| 329 | - Package description changed from "A user interface for setting document font |
| 330 | sizes" to "A flexible interface for setting font sizes". |
| 331 | - The code no longer uses `\@setfontsize`. |
| 332 | - The font size commands provided by this package now do nothing, except issue |
| 333 | a warning, if used in math mode. |
| 334 | - The base font size of the musical typographic scale is now set by the new key |
| 335 | `musical/base`. |
| 336 | - `\PrintFontParameters` renamed to `\PrintFontSizeParameters`. |
| 337 | - `\PrintAllFontParameters` renamed to `\PrintAllFontSizeParameters`. |
| 338 | - `\PrintSampleText` uses a `+m`- instead of an `O`-type argument. |
| 339 | - `\PrintFontSizeCommand` prints `\undefined` instead of `UNDEFINED`. |
| 340 | - `\fontscalesetup` is now removed in `\text_purify:n`. |
| 341 | |
| 342 | ### Removed |
| 343 | - Keys `typographic-scale/modular` and `modular`. |
| 344 | - Key `ignore-order` (no support for using `\tiny` to `\Huge` in the wrong |
| 345 | order). |
| 346 | - Key `reset` (very rarely used). |
| 347 | - Public `prop` variables for each font size command from `\tiny` to `\Huge`. |
| 348 | (They are redundant with the other public variables and programmers will very |
| 349 | likely prefer using their own `prop` variables.) |
| 350 | |
| 351 | ### Added |
| 352 | - `\fontscalesetup` now has an optional starred argument which first resets the |
| 353 | keys to their initial values. |
| 354 | - Key `musical/base` (explained earlier). |
| 355 | - The package commands now issue a user-friendly error message if the font size |
| 356 | is a zero or negative length. |
| 357 | - The package commands now issue an error if the font baselineskip is less than |
| 358 | the font size. |
| 359 | - The package commands that would produce a low-level error if used in math |
| 360 | mode now issue a user-friendly error message instead. |
| 361 | |
| 362 | ### Fixed |
| 363 | - Now correctly checks that the package requires `LaTeX2e` version 2023-11-01 |
| 364 | or newer. |
| 365 | - The keys `<font size command>` no longer incorrectly treat a `/` within a |
| 366 | brace group as the delimiter. |
| 367 | |
| 368 | ## [v1.3.0] - 2024-05-17 |
| 369 | |
| 370 | ### Added |
| 371 | - `\fontscalesetup` now provides error checking for the keys `modular/ratio`, |
| 372 | `musical/ratio`, and `musical/notes`. |
| 373 | - It is now documented that `\fontscalesetup` uses `\normalsize` after it |
| 374 | sets and processes the package keys. |
| 375 | |
| 376 | ### Changed |
| 377 | - The code now regularly uses `V`- and `v`-type arguments to get the value of |
| 378 | an `expl3` variable. |
| 379 | - The code now uses private `expl3` wrappers around the `LaTeX2e` commands |
| 380 | `\@setfontsize`, `\fontsize`, and `\selectfont`. |
| 381 | |
| 382 | ## [v1.2.2] - 2024-04-29 |
| 383 | |
| 384 | ### Changed |
| 385 | - Improved package messages when issuing errors and warnings. |
| 386 | - Code improvements. |
| 387 | |
| 388 | ### Fixed |
| 389 | - The documentation no longer incorrectly compares `\ScaleFont` with |
| 390 | `\scalefont` from the `scalefnt` package. |
| 391 | - The internal function for the key `reset/preamble` now correctly initializes |
| 392 | to `\prg_do_nothing:`. |
| 393 | |
| 394 | ## [v1.2.1] - 2024-04-21 |
| 395 | |
| 396 | ### Changed |
| 397 | - Improved the error message for `\SetFontStep` when adding the optional star |
| 398 | and the current font step is undefined. |
| 399 | - Documentation improvements. |
| 400 | |
| 401 | ## [v1.2.0] - 2024-04-15 |
| 402 | |
| 403 | ### Added |
| 404 | - It is now documented that the keys and commands provided by this package take |
| 405 | as a value or argument a dimen, skip, floating point, or integer expression |
| 406 | instead of simply a size, skip, number, or integer. |
| 407 | - The package now includes a CHANGELOG file. |
| 408 | |
| 409 | ### Changed |
| 410 | - Documentation improvements. |
| 411 | |
| 412 | ### Fixed |
| 413 | - The key `reset/preamble` and `\SetFontStep` no longer rely on undocumented |
| 414 | `expl3` features. |
| 415 | - Corrected typo in the documentation. |
| 416 | |
| 417 | ## [v1.1.1] - 2024-04-07 |
| 418 | |
| 419 | ### Changed |
| 420 | - Improved performance, especially when using a musical typographic scale. |
| 421 | - Small documentation improvements. |
| 422 | |
| 423 | ## [v1.1.0] - 2024-03-31 |
| 424 | |
| 425 | ### Added |
| 426 | - `\SetFontStep`, `\SetFontScale`, `\SetFontSize`, `\ScaleFont`, and |
| 427 | `\SetFontSizeBaselineskip` are now correctly removed by `\text_purify:n`. |
| 428 | |
| 429 | ## [v1.0.3] - 2024-03-26 |
| 430 | |
| 431 | ### Changed |
| 432 | - Code improvements, particularly to document commands defined with optional |
| 433 | arguments. |
| 434 | |
| 435 | ## [v1.0.2] - 2024-03-22 |
| 436 | |
| 437 | ### Changed |
| 438 | - Performance and code improvements. |
| 439 | |
| 440 | ### Fixed |
| 441 | - The key `reset/preamble` no longer relies on an unsupported `V`-type `bool` |
| 442 | argument. |
| 443 | |
| 444 | ## [v1.0.1] - 2024-03-08 |
| 445 | |
| 446 | ### Added |
| 447 | - Added the `.tex` sources for the documentation. |
| 448 | - Added the CTAN link to the `.sty` and README files. |
| 449 | |
| 450 | ## [v1.0.0] - 2024-03-06 |
| 451 | |
| 452 | ### Added |
| 453 | - First official release to CTAN. |