mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-16 23:24:24 +00:00
* craft-dxf: add VectorCraft's ASCII drawing writer Move the incremental file writer from vectorcraft-cad (crates/cad/src/writer.rs) into craft_dxf::drawing. It writes the HEADER/TABLES/BLOCKS/OBJECTS skeleton around a pre-built ENTITIES section, which is the format API VectorCraft's scene mapper already uses. The existing model::write tag serializer is unchanged. Golden files lock the bytes for empty and one-LINE drawings in R12, 2000 and 2018. Part of #791 / #778. * test(dxf): preserve exact golden bytes on Windows checkout * fix(dxf): preserve BYBLOCK and use valid image dictionary keys * test(dxf): clone images before write in dictionary-key test Drawing::write takes self, so the assertions have to use a clone of the image list. The rest of the test is unchanged. --------- Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
20 lines
913 B
Plaintext
20 lines
913 B
Plaintext
# Font-build test fixtures are compared byte for byte: a checkout must not convert them.
|
|
crates/fonts-build/tests/fixture/** -text
|
|
|
|
# The pinned font index is hashed and compiled in as committed: a checkout must not convert its
|
|
# line endings, or `Index::bundled` fails its checksum on Windows.
|
|
crates/font-store/index/sources.json -text
|
|
crates/font-store/index/indexes/*.gz binary
|
|
|
|
# Copies of the vendored krilla source diff, one per patch (see vendor/krilla/README.craft.md).
|
|
vendor/krilla/patches/*.patch linguist-generated=true
|
|
|
|
# Has a pinned digest and is embedded as bytes by craft-font-store.
|
|
crates/font-store/index/sources.json -text
|
|
|
|
# The build fixture verifies these license files are copied byte-for-byte.
|
|
crates/fonts-build/tests/fixture/craft-fonts/fonts/**/OFL.txt -text
|
|
|
|
# DXF drawing goldens assert exact writer bytes, including LF on every platform.
|
|
crates/dxf/tests/data/drawing_*.dxf -text
|