Gflabel

Latest version: v0.1.7

Safety actively analyzes 641872 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.1.7

- Bugfix: Symbol generation was broken by a reorganisation. Thanks to [PaulBone](https://github.com/PaulBone).
- Bugfix: Standalone whitespace was not using fonts correctly. ([6](https://github.com/ndevenish/gflabel/issues/6))

0.1.6

- Added `{magnet}` fragment. Thanks to [PaulBone](https://github.com/PaulBone)
for the contribution.
- Changed text/font handling. Instead of Futura, GFLabel now defaults to a
bundled version of [Open Sans][opensans]. You can still specify your
font of choice with `--font` (if it is a system font), or if you want to
specify a specific font file you can set `--font-path`.
- You can set the default font at an environment level by setting `GFLABEL_FONT`
to the name of the system font that you want to use.

[opensans]: https://github.com/googlefonts/opensans

0.1.5

- Fix error when using `ocp_vscode` to preview labels and exporting SVG (the
label was only rendered in 2D, but the code to push the preview assumed that
it was always in 3D)
- Breaking: Renamed `--gap` option to `--label-gap`. The name "gap" was too
generic when we wanted to allow specifying different "gaps".
- Add new `predbox` base. These bases are labels for the [Parametric Gridfinity Storage Box by Pred][predbox]
box labels. It is supported for width 4, 5, 6 and 7, which corresponds to the
label size corresponding to a storage box of that many gridfinity units.
- Added alignment specifiers `{<}` and `{>}`. These can only be used at the
start of a label column (or label division) and causes the contents of the
column to all be left-aligned or right-aligned. For aligning only specific
lines in a column, the padding fragment `{...}` can still be used.
- Add fragment `{|}`. This allows you to designate columns between which
the text area will be split. You can specify the ratio of column widths
by specifying the proportions in the fragment e.g. `{2|1}`.
- Added new option `--column-gap`, that specifies the gap between columns when
using the column specification fragment.
- Added a `{measure}` fragment, that shows column widths. This can be useful
for demonstration or debugging purposes.

[predbox]: https://www.printables.com/model/543553-gridfinity-storage-box-by-pred-now-parametric

0.1.4

- Added option `--font-size-maximum`. If this is set (instead of `--font-size`)
then text will be allowed to shrink to fit the available space, but will not
get any larger than specified (in mm). This is different from `--font-size`,
which would force the text to be rendered at the same size, which risked
causing overflow when rendering many varied text fields.
- Fixed occasional issue where labels would rerender themselves to correct
minute scale differences (e.g. trying to scale down to correct a 99.9999999
undersize).
- Fixed issue where undersized fragments would downscale based on the height of
the full available area, instead of the actual undersized height it was
rendered at.
- Rework SVG rendering. SVG will now _only_ render the label fields, and will
not try to project the label base into the SVG. This is much faster, but also
ensures cleaner SVG output and avoids topology issues when trying to add more
and more data into the SVG projection (this is used to generate the example
tables).
- ~~Added `--gap` option, which when multiple labels are being generated, allows
you to customise the gap between labels.~~
- Made progress towards a more user-friendly console output.
- Add fragment `symbol(...)`. This rendered electronic symbols, taken from
Chris Pikul' [electronic-symbols][christ-pikul] diagrams. Not all of the
symbols currently render without issue.

[chris-pikul]: https://github.com/chris-pikul/electronic-symbols

0.1.3

- Add style `webbolt(partial)`. This causes a thread to be generated only on
the bottom part of the screw, representing a partially threaded bolt.
- Added `lockwasher` for a locking washer. The size of this and the washer
were slightly adjusted to be closer to the webb-style size.
- Adjusted the proportions of `webbolt` to match the published version of the
system (this was previously measured off of preview screenshots).

0.1.2

- Update the `webb` base to match the new v1.1.0 style. The trapezoid cutouts
have been replaced for easier printing and more satisfying snap.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.