diff --git a/piet-cairo/Cargo.toml b/piet-cairo/Cargo.toml index 4774ed4b1..c4c8684ad 100644 --- a/piet-cairo/Cargo.toml +++ b/piet-cairo/Cargo.toml @@ -3,7 +3,7 @@ name = "piet-cairo" version = "0.6.2" authors = ["Raph Levien "] description = "Cairo backend for piet 2D graphics abstraction." -license = "MIT/Apache-2.0" +license = "Apache-2.0 OR MIT" repository = "https://github.com/linebender/piet" readme = "../README.md" edition = "2018" diff --git a/piet-cairo/benches/make_image.rs b/piet-cairo/benches/make_image.rs index 02dde7b9a..907ddc09c 100644 --- a/piet-cairo/benches/make_image.rs +++ b/piet-cairo/benches/make_image.rs @@ -1,3 +1,6 @@ +// Copyright 2021 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + use cairo::{Context, Format, ImageSurface}; use criterion::{black_box, criterion_group, criterion_main, Criterion}; use piet::{ImageFormat, RenderContext}; diff --git a/piet-cairo/examples/test-picture.rs b/piet-cairo/examples/test-picture.rs index 4224edef2..8d5b9709b 100644 --- a/piet-cairo/examples/test-picture.rs +++ b/piet-cairo/examples/test-picture.rs @@ -1,3 +1,6 @@ +// Copyright 2019 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Basic example of rendering on Cairo. use std::fmt::Write as _; diff --git a/piet-cairo/src/lib.rs b/piet-cairo/src/lib.rs index 7635d9f22..fdfe4ecb6 100644 --- a/piet-cairo/src/lib.rs +++ b/piet-cairo/src/lib.rs @@ -1,3 +1,6 @@ +// Copyright 2019 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! The Cairo backend for the Piet 2D graphics abstraction. #![deny(clippy::trivially_copy_pass_by_ref)] diff --git a/piet-cairo/src/text.rs b/piet-cairo/src/text.rs index 4f28aeaee..a5f8bcfea 100644 --- a/piet-cairo/src/text.rs +++ b/piet-cairo/src/text.rs @@ -1,3 +1,6 @@ +// Copyright 2019 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Text functionality for Piet cairo backend use std::convert::TryInto; diff --git a/piet-common/Cargo.toml b/piet-common/Cargo.toml index 8c88decb0..832231d05 100644 --- a/piet-common/Cargo.toml +++ b/piet-common/Cargo.toml @@ -3,7 +3,7 @@ name = "piet-common" version = "0.6.2" authors = ["Raph Levien "] description = "Selection of a single preferred back-end for piet" -license = "MIT/Apache-2.0" +license = "Apache-2.0 OR MIT" repository = "https://github.com/linebender/piet" readme = "README.md" edition = "2018" diff --git a/piet-common/examples/mondrian.rs b/piet-common/examples/mondrian.rs index 8d36bebe6..4ca3de3bb 100644 --- a/piet-common/examples/mondrian.rs +++ b/piet-common/examples/mondrian.rs @@ -1,3 +1,6 @@ +// Copyright 2021 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! This example implements a generative algorithm for making pictures like //! Piet Mondrian's squares. // TODO: Remove all the wasm32 cfg guards once this compiles with piet-web diff --git a/piet-common/src/cairo_back.rs b/piet-common/src/cairo_back.rs index 6091c42fd..81c325f88 100644 --- a/piet-common/src/cairo_back.rs +++ b/piet-common/src/cairo_back.rs @@ -1,3 +1,6 @@ +// Copyright 2019 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + // allows e.g. raw_data[dst_off + x * 4 + 2] = buf[src_off + x * 4 + 0]; #![allow(clippy::identity_op)] diff --git a/piet-common/src/cg_back.rs b/piet-common/src/cg_back.rs index 90e7a5c80..7f886e8f8 100644 --- a/piet-common/src/cg_back.rs +++ b/piet-common/src/cg_back.rs @@ -1,3 +1,6 @@ +// Copyright 2020 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + // allows e.g. raw_data[dst_off + x * 4 + 2] = buf[src_off + x * 4 + 0]; #![allow(clippy::identity_op)] diff --git a/piet-common/src/direct2d_back.rs b/piet-common/src/direct2d_back.rs index c8f8208f0..9d8e685d5 100644 --- a/piet-common/src/direct2d_back.rs +++ b/piet-common/src/direct2d_back.rs @@ -1,3 +1,6 @@ +// Copyright 2019 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Support for piet Direct2D back-end. #[cfg(feature = "png")] diff --git a/piet-common/src/lib.rs b/piet-common/src/lib.rs index 25032b496..723f2795f 100644 --- a/piet-common/src/lib.rs +++ b/piet-common/src/lib.rs @@ -1,3 +1,6 @@ +// Copyright 2019 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! A piet backend appropriate for the current platform. //! //! This crate reexports the [piet crate][piet], alongside an appropriate backend diff --git a/piet-common/src/web_back.rs b/piet-common/src/web_back.rs index 9ca4219bd..a1e70a30a 100644 --- a/piet-common/src/web_back.rs +++ b/piet-common/src/web_back.rs @@ -1,3 +1,6 @@ +// Copyright 2019 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Support for piet Web back-end. use std::fmt; diff --git a/piet-common/tests/image.rs b/piet-common/tests/image.rs index ed7556011..2d8e593b8 100644 --- a/piet-common/tests/image.rs +++ b/piet-common/tests/image.rs @@ -1,3 +1,6 @@ +// Copyright 2020 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + use kurbo::{Rect, Size}; use piet_common::*; diff --git a/piet-common/tests/text.rs b/piet-common/tests/text.rs index d7ed1f9cb..7fd9bed8c 100644 --- a/piet-common/tests/text.rs +++ b/piet-common/tests/text.rs @@ -1,3 +1,6 @@ +// Copyright 2020 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Basic conformance testing for text. #[cfg(target_arch = "wasm32")] diff --git a/piet-coregraphics/Cargo.toml b/piet-coregraphics/Cargo.toml index 6cd102a45..15c48693d 100644 --- a/piet-coregraphics/Cargo.toml +++ b/piet-coregraphics/Cargo.toml @@ -3,7 +3,7 @@ name = "piet-coregraphics" version = "0.6.2" authors = ["Jeff Muizelaar , Raph Levien , Colin Rofls "] description = "CoreGraphics backend for piet 2D graphics abstraction." -license = "MIT/Apache-2.0" +license = "Apache-2.0 OR MIT" repository = "https://github.com/linebender/piet" readme = "../README.md" edition = "2018" diff --git a/piet-coregraphics/examples/test-picture.rs b/piet-coregraphics/examples/test-picture.rs index b784508cf..dee2b4963 100644 --- a/piet-coregraphics/examples/test-picture.rs +++ b/piet-coregraphics/examples/test-picture.rs @@ -1,3 +1,6 @@ +// Copyright 2020 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Run the piet-test examples with the coregraphics backend. use std::path::Path; diff --git a/piet-coregraphics/src/ct_helpers.rs b/piet-coregraphics/src/ct_helpers.rs index f8de71eaa..632730bb9 100644 --- a/piet-coregraphics/src/ct_helpers.rs +++ b/piet-coregraphics/src/ct_helpers.rs @@ -1,3 +1,6 @@ +// Copyright 2020 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Wrappers around CF/CT types, with nice interfaces. #![allow(clippy::upper_case_acronyms)] diff --git a/piet-coregraphics/src/gradient.rs b/piet-coregraphics/src/gradient.rs index e6d396bd0..352c57131 100644 --- a/piet-coregraphics/src/gradient.rs +++ b/piet-coregraphics/src/gradient.rs @@ -1,3 +1,6 @@ +// Copyright 2020 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![allow(non_upper_case_globals)] //! core graphics gradient support diff --git a/piet-coregraphics/src/lib.rs b/piet-coregraphics/src/lib.rs index 1096b7b0f..5818f3a18 100644 --- a/piet-coregraphics/src/lib.rs +++ b/piet-coregraphics/src/lib.rs @@ -1,3 +1,6 @@ +// Copyright 2020 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! The CoreGraphics backend for the Piet 2D graphics abstraction. #![deny(clippy::trivially_copy_pass_by_ref)] diff --git a/piet-coregraphics/src/text.rs b/piet-coregraphics/src/text.rs index ca1f1cafb..064aa4ff3 100644 --- a/piet-coregraphics/src/text.rs +++ b/piet-coregraphics/src/text.rs @@ -1,3 +1,6 @@ +// Copyright 2020 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Text related stuff for the coregraphics backend use std::cell::RefCell; diff --git a/piet-direct2d/Cargo.toml b/piet-direct2d/Cargo.toml index 26b9cabb8..fa947af7e 100644 --- a/piet-direct2d/Cargo.toml +++ b/piet-direct2d/Cargo.toml @@ -3,7 +3,7 @@ name = "piet-direct2d" version = "0.6.2" authors = ["Raph Levien "] description = "Direct2D backend for piet 2D graphics abstraction." -license = "MIT/Apache-2.0" +license = "Apache-2.0 OR MIT" repository = "https://github.com/linebender/piet" readme = "../README.md" edition = "2018" diff --git a/piet-direct2d/examples/test-picture.rs b/piet-direct2d/examples/test-picture.rs index c128b9c73..4f15ab00e 100644 --- a/piet-direct2d/examples/test-picture.rs +++ b/piet-direct2d/examples/test-picture.rs @@ -1,3 +1,6 @@ +// Copyright 2019 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Basic example of rendering on Direct2D. use std::path::Path; diff --git a/piet-direct2d/src/conv.rs b/piet-direct2d/src/conv.rs index 295888f69..0b698a9cb 100644 --- a/piet-direct2d/src/conv.rs +++ b/piet-direct2d/src/conv.rs @@ -1,3 +1,6 @@ +// Copyright 2019 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Conversions of types into Direct2D use winapi::um::d2d1::{ diff --git a/piet-direct2d/src/d2d.rs b/piet-direct2d/src/d2d.rs index 960804d6c..98fb2395c 100644 --- a/piet-direct2d/src/d2d.rs +++ b/piet-direct2d/src/d2d.rs @@ -1,3 +1,6 @@ +// Copyright 2020 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Convenience wrappers for Direct2D objects. //! //! These also function as safety boundaries (though determining the diff --git a/piet-direct2d/src/d3d.rs b/piet-direct2d/src/d3d.rs index 047c8a01f..0f57ca545 100644 --- a/piet-direct2d/src/d3d.rs +++ b/piet-direct2d/src/d3d.rs @@ -1,3 +1,6 @@ +// Copyright 2020 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + use std::ptr::null_mut; // TODO figure out whether to export this or to move `raw_pixels` into this module. diff --git a/piet-direct2d/src/dwrite.rs b/piet-direct2d/src/dwrite.rs index facb4e417..21842f31b 100644 --- a/piet-direct2d/src/dwrite.rs +++ b/piet-direct2d/src/dwrite.rs @@ -1,3 +1,6 @@ +// Copyright 2020 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Convenience wrappers for DirectWrite objects. // TODO: get rid of this when we actually do use everything diff --git a/piet-direct2d/src/error.rs b/piet-direct2d/src/error.rs index abaf076d1..8b30242d4 100644 --- a/piet-direct2d/src/error.rs +++ b/piet-direct2d/src/error.rs @@ -1,3 +1,6 @@ +// Copyright 2019 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Error conversion from D2D/DWrite to piet Error. use std::fmt; diff --git a/piet-direct2d/src/lib.rs b/piet-direct2d/src/lib.rs index 844dfa43f..547466b66 100644 --- a/piet-direct2d/src/lib.rs +++ b/piet-direct2d/src/lib.rs @@ -1,3 +1,6 @@ +// Copyright 2019 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + #![cfg(windows)] // allows for nice formatting for e.g. new_buf[i * 4 + 0] = premul(buf[i * 4 + 0, a) #![allow(clippy::identity_op)] diff --git a/piet-direct2d/src/text.rs b/piet-direct2d/src/text.rs index e513af1ce..3bb29b9a5 100644 --- a/piet-direct2d/src/text.rs +++ b/piet-direct2d/src/text.rs @@ -1,3 +1,6 @@ +// Copyright 2019 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Text functionality for Piet direct2d backend mod lines; diff --git a/piet-direct2d/src/text/lines.rs b/piet-direct2d/src/text/lines.rs index 9d9fae841..a57edf6b6 100644 --- a/piet-direct2d/src/text/lines.rs +++ b/piet-direct2d/src/text/lines.rs @@ -1,3 +1,6 @@ +// Copyright 2020 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + use crate::dwrite; use piet::{util, LineMetric}; diff --git a/piet-svg/Cargo.toml b/piet-svg/Cargo.toml index d779337ca..8e61c900c 100644 --- a/piet-svg/Cargo.toml +++ b/piet-svg/Cargo.toml @@ -4,7 +4,7 @@ version = "0.6.2" authors = ["Benjamin Saunders "] description = "SVG backend for piet 2D graphics abstraction." edition = "2018" -license = "MIT/Apache-2.0" +license = "Apache-2.0 OR MIT" repository = "https://github.com/linebender/piet" keywords = ["graphics", "2d"] categories = ["rendering::graphics-api"] diff --git a/piet-svg/examples/basic-svg.rs b/piet-svg/examples/basic-svg.rs index 201ad6675..b2e959ac7 100644 --- a/piet-svg/examples/basic-svg.rs +++ b/piet-svg/examples/basic-svg.rs @@ -1,3 +1,6 @@ +// Copyright 2020 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Basic example of rendering to a SVG use std::io; diff --git a/piet-svg/src/evcxr.rs b/piet-svg/src/evcxr.rs index 98ab19be5..4a3c019e0 100644 --- a/piet-svg/src/evcxr.rs +++ b/piet-svg/src/evcxr.rs @@ -1,3 +1,6 @@ +// Copyright 2021 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Helpers to make the SVG output of `piet-svg` easier to use from within `evcxr_jupyter`. //! //! [`evcxr`] is a Rust REPL. It also provides a Rust kernel for the [Jupyter Notebook] through diff --git a/piet-svg/src/lib.rs b/piet-svg/src/lib.rs index bda69180c..207b18bed 100644 --- a/piet-svg/src/lib.rs +++ b/piet-svg/src/lib.rs @@ -1,3 +1,6 @@ +// Copyright 2020 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! SVG output support for piet #![deny(clippy::trivially_copy_pass_by_ref)] diff --git a/piet-svg/src/text.rs b/piet-svg/src/text.rs index fc3a27c05..2b589be61 100644 --- a/piet-svg/src/text.rs +++ b/piet-svg/src/text.rs @@ -1,3 +1,6 @@ +// Copyright 2019 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Text functionality for Piet svg backend use std::{ diff --git a/piet-web/Cargo.toml b/piet-web/Cargo.toml index 6b7042a94..455c0b5bb 100644 --- a/piet-web/Cargo.toml +++ b/piet-web/Cargo.toml @@ -3,7 +3,7 @@ name = "piet-web" version = "0.6.2" authors = ["Raph Levien "] description = "Web canvas backend for piet 2D graphics abstraction." -license = "MIT/Apache-2.0" +license = "Apache-2.0 OR MIT" repository = "https://github.com/linebender/piet" readme = "../README.md" edition = "2018" diff --git a/piet-web/examples/basic/src/lib.rs b/piet-web/examples/basic/src/lib.rs index f38b95330..a6e0c561c 100644 --- a/piet-web/examples/basic/src/lib.rs +++ b/piet-web/examples/basic/src/lib.rs @@ -1,3 +1,6 @@ +// Copyright 2019 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Basic example of rendering in the browser use wasm_bindgen::prelude::*; diff --git a/piet-web/src/lib.rs b/piet-web/src/lib.rs index 8e21ef6dd..2295f3134 100644 --- a/piet-web/src/lib.rs +++ b/piet-web/src/lib.rs @@ -1,3 +1,6 @@ +// Copyright 2019 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + // allows e.g. raw_data[dst_off + x * 4 + 2] = buf[src_off + x * 4 + 0]; #![allow(clippy::identity_op)] #![deny(clippy::trivially_copy_pass_by_ref)] diff --git a/piet-web/src/text.rs b/piet-web/src/text.rs index 6fbcccc65..24475e378 100644 --- a/piet-web/src/text.rs +++ b/piet-web/src/text.rs @@ -1,3 +1,6 @@ +// Copyright 2019 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Text functionality for Piet web backend mod grapheme; diff --git a/piet-web/src/text/grapheme.rs b/piet-web/src/text/grapheme.rs index e2ed86707..7c93a9fe7 100644 --- a/piet-web/src/text/grapheme.rs +++ b/piet-web/src/text/grapheme.rs @@ -1,3 +1,6 @@ +// Copyright 2019 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + use piet::HitTestPoint; use unicode_segmentation::UnicodeSegmentation; use web_sys::CanvasRenderingContext2d; diff --git a/piet-web/src/text/lines.rs b/piet-web/src/text/lines.rs index 1e4b75de2..120281da7 100644 --- a/piet-web/src/text/lines.rs +++ b/piet-web/src/text/lines.rs @@ -1,3 +1,6 @@ +// Copyright 2020 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + // currently basically copied and pasted from cairo backend, except cairo::ScaledFont is replaced // by web_sys::CanvasRenderingContext2d // diff --git a/piet/Cargo.toml b/piet/Cargo.toml index 2d63cb6d5..7c3cbfba3 100644 --- a/piet/Cargo.toml +++ b/piet/Cargo.toml @@ -3,7 +3,7 @@ name = "piet" version = "0.6.2" authors = ["Raph Levien "] description = "An abstraction for 2D graphics." -license = "MIT/Apache-2.0" +license = "Apache-2.0 OR MIT" repository = "https://github.com/linebender/piet" readme = "../README.md" edition = "2018" diff --git a/piet/src/color.rs b/piet/src/color.rs index caa044dd6..98be6e257 100644 --- a/piet/src/color.rs +++ b/piet/src/color.rs @@ -1,3 +1,6 @@ +// Copyright 2019 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! A simple representation of color use std::fmt::{Debug, Formatter}; diff --git a/piet/src/conv.rs b/piet/src/conv.rs index 7d712f46f..4ce25abf1 100644 --- a/piet/src/conv.rs +++ b/piet/src/conv.rs @@ -1,3 +1,6 @@ +// Copyright 2019 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Conversions of fundamental numeric and geometric types. use kurbo::Vec2; diff --git a/piet/src/error.rs b/piet/src/error.rs index 1c6f1747b..b1b93d64b 100644 --- a/piet/src/error.rs +++ b/piet/src/error.rs @@ -1,3 +1,6 @@ +// Copyright 2019 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! The common error type for piet operations. use std::fmt; diff --git a/piet/src/font.rs b/piet/src/font.rs index e13bef893..d14082fe3 100644 --- a/piet/src/font.rs +++ b/piet/src/font.rs @@ -1,3 +1,6 @@ +// Copyright 2020 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Font families, weights, etcetera use std::sync::Arc; diff --git a/piet/src/gradient.rs b/piet/src/gradient.rs index 402b969ae..8a4d128ed 100644 --- a/piet/src/gradient.rs +++ b/piet/src/gradient.rs @@ -1,3 +1,6 @@ +// Copyright 2019 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Gradient specifications. //! //! We provide both linear and radial gradients; and for each flavor diff --git a/piet/src/image.rs b/piet/src/image.rs index 846847b05..8b0d00c28 100644 --- a/piet/src/image.rs +++ b/piet/src/image.rs @@ -1,16 +1,5 @@ -// Copyright 2020 The Druid Authors. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// Copyright 2020 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT //! Types for working with images diff --git a/piet/src/lib.rs b/piet/src/lib.rs index c788661bc..9f97f29ba 100644 --- a/piet/src/lib.rs +++ b/piet/src/lib.rs @@ -1,3 +1,6 @@ +// Copyright 2019 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! A 2D graphics abstraction. //! //! This crate contains types and interfaces that represent a traditional 2D diff --git a/piet/src/null_renderer.rs b/piet/src/null_renderer.rs index 9b22c945d..44532529e 100644 --- a/piet/src/null_renderer.rs +++ b/piet/src/null_renderer.rs @@ -1,3 +1,6 @@ +// Copyright 2019 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! A render context that does nothing. use std::borrow::Cow; diff --git a/piet/src/render_context.rs b/piet/src/render_context.rs index ffb55df83..c15acd2a5 100644 --- a/piet/src/render_context.rs +++ b/piet/src/render_context.rs @@ -1,3 +1,6 @@ +// Copyright 2019 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! The main render context trait. use std::borrow::Cow; diff --git a/piet/src/samples/mod.rs b/piet/src/samples/mod.rs index fc11c453d..eeb886df4 100644 --- a/piet/src/samples/mod.rs +++ b/piet/src/samples/mod.rs @@ -1,3 +1,6 @@ +// Copyright 2019 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Drawing examples for testing backends #![allow(clippy::unnecessary_wraps)] diff --git a/piet/src/samples/picture_0.rs b/piet/src/samples/picture_0.rs index f55cb4f99..00a37c4d7 100644 --- a/piet/src/samples/picture_0.rs +++ b/piet/src/samples/picture_0.rs @@ -1,3 +1,6 @@ +// Copyright 2019 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! A wide assortment of graphics meant to show off many different uses of piet use crate::kurbo::{Affine, BezPath, Line, Point, Rect, RoundedRect, Size, Vec2}; diff --git a/piet/src/samples/picture_1.rs b/piet/src/samples/picture_1.rs index 5ddf1c0bf..a8e2566e1 100644 --- a/piet/src/samples/picture_1.rs +++ b/piet/src/samples/picture_1.rs @@ -1,3 +1,6 @@ +// Copyright 2019 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Rendering a cubic Bézier curve with its control points and handles use crate::kurbo::{BezPath, Line, Point, Size}; diff --git a/piet/src/samples/picture_10.rs b/piet/src/samples/picture_10.rs index e3a6f76cd..cf8a932a2 100644 --- a/piet/src/samples/picture_10.rs +++ b/piet/src/samples/picture_10.rs @@ -1,3 +1,6 @@ +// Copyright 2020 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Show the relationship between the layout rect and the inking/image rect. use crate::kurbo::{Size, Vec2}; diff --git a/piet/src/samples/picture_11.rs b/piet/src/samples/picture_11.rs index 42b497f44..1ef8029d8 100644 --- a/piet/src/samples/picture_11.rs +++ b/piet/src/samples/picture_11.rs @@ -1,3 +1,6 @@ +// Copyright 2020 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Visualize results of hit-testing use crate::kurbo::{Circle, Line, Point, Size}; diff --git a/piet/src/samples/picture_12.rs b/piet/src/samples/picture_12.rs index a63435010..a96cb362a 100644 --- a/piet/src/samples/picture_12.rs +++ b/piet/src/samples/picture_12.rs @@ -1,3 +1,6 @@ +// Copyright 2020 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! range attributes should override default attributes use crate::kurbo::{Size, Vec2}; diff --git a/piet/src/samples/picture_13.rs b/piet/src/samples/picture_13.rs index c3815a96d..d7757d930 100644 --- a/piet/src/samples/picture_13.rs +++ b/piet/src/samples/picture_13.rs @@ -1,3 +1,6 @@ +// Copyright 2020 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Using custom font families. use crate::kurbo::{Size, Vec2}; diff --git a/piet/src/samples/picture_14.rs b/piet/src/samples/picture_14.rs index 90392ed67..2944979c7 100644 --- a/piet/src/samples/picture_14.rs +++ b/piet/src/samples/picture_14.rs @@ -1,3 +1,6 @@ +// Copyright 2020 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Setting font weight when a variable font has a 'wght' axis use crate::kurbo::{Size, Vec2}; diff --git a/piet/src/samples/picture_15.rs b/piet/src/samples/picture_15.rs index 8bd739e8b..c4e278899 100644 --- a/piet/src/samples/picture_15.rs +++ b/piet/src/samples/picture_15.rs @@ -1,3 +1,6 @@ +// Copyright 2021 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Clipping and clearing. //! //! This tests interactions between clipping, transforms, and the clear method. diff --git a/piet/src/samples/picture_16.rs b/piet/src/samples/picture_16.rs index b05a33c56..d95351ec9 100644 --- a/piet/src/samples/picture_16.rs +++ b/piet/src/samples/picture_16.rs @@ -1,3 +1,6 @@ +// Copyright 2022 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! capture_image_rect //! //! This tests makes sure that copying part of an image works diff --git a/piet/src/samples/picture_2.rs b/piet/src/samples/picture_2.rs index 1577b8d3e..57f0616db 100644 --- a/piet/src/samples/picture_2.rs +++ b/piet/src/samples/picture_2.rs @@ -1,3 +1,6 @@ +// Copyright 2019 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! A bunch of image test cases. use crate::kurbo::{Rect, Size}; diff --git a/piet/src/samples/picture_3.rs b/piet/src/samples/picture_3.rs index c9ddb0d65..03891f543 100644 --- a/piet/src/samples/picture_3.rs +++ b/piet/src/samples/picture_3.rs @@ -1,3 +1,6 @@ +// Copyright 2019 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Rendering stroke styles. use crate::kurbo::{Affine, BezPath, Line, Size}; diff --git a/piet/src/samples/picture_4.rs b/piet/src/samples/picture_4.rs index 4787a68f1..ad3e8ab6c 100644 --- a/piet/src/samples/picture_4.rs +++ b/piet/src/samples/picture_4.rs @@ -1,3 +1,6 @@ +// Copyright 2019 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Gradients. use crate::kurbo::{Point, Rect, Size, Vec2}; diff --git a/piet/src/samples/picture_5.rs b/piet/src/samples/picture_5.rs index 5bbdb06ce..ee3f21230 100644 --- a/piet/src/samples/picture_5.rs +++ b/piet/src/samples/picture_5.rs @@ -1,3 +1,6 @@ +// Copyright 2019 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! range attributes should override default attributes use crate::kurbo::{Size, Vec2}; diff --git a/piet/src/samples/picture_6.rs b/piet/src/samples/picture_6.rs index 6c9f7db8c..124777188 100644 --- a/piet/src/samples/picture_6.rs +++ b/piet/src/samples/picture_6.rs @@ -1,3 +1,6 @@ +// Copyright 2020 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Gradients. use crate::kurbo::{Circle, Point, Rect, RoundedRect, Size, Vec2}; diff --git a/piet/src/samples/picture_7.rs b/piet/src/samples/picture_7.rs index d0e3d32e9..78fa53fa6 100644 --- a/piet/src/samples/picture_7.rs +++ b/piet/src/samples/picture_7.rs @@ -1,3 +1,6 @@ +// Copyright 2020 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Text layouts use crate::kurbo::{Rect, Size}; diff --git a/piet/src/samples/picture_8.rs b/piet/src/samples/picture_8.rs index fb0d3a2bc..bae2fa15b 100644 --- a/piet/src/samples/picture_8.rs +++ b/piet/src/samples/picture_8.rs @@ -1,3 +1,6 @@ +// Copyright 2020 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Styled text use crate::kurbo::Size; diff --git a/piet/src/samples/picture_9.rs b/piet/src/samples/picture_9.rs index 81eed9170..fecf9a358 100644 --- a/piet/src/samples/picture_9.rs +++ b/piet/src/samples/picture_9.rs @@ -1,3 +1,6 @@ +// Copyright 2020 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Verifying line metrics and text layout geometry behave as intended. use crate::kurbo::{Line, Size, Vec2}; diff --git a/piet/src/shapes.rs b/piet/src/shapes.rs index 5ee8d53ce..c4f6d3857 100644 --- a/piet/src/shapes.rs +++ b/piet/src/shapes.rs @@ -1,3 +1,6 @@ +// Copyright 2019 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Options for drawing paths. use std::rc::Rc; diff --git a/piet/src/text.rs b/piet/src/text.rs index 6b6f1be1f..c8c325c73 100644 --- a/piet/src/text.rs +++ b/piet/src/text.rs @@ -1,3 +1,6 @@ +// Copyright 2019 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Traits for fonts and text handling. use std::ops::{Range, RangeBounds}; diff --git a/piet/src/util.rs b/piet/src/util.rs index 06f4ef50d..b21e7227a 100644 --- a/piet/src/util.rs +++ b/piet/src/util.rs @@ -1,3 +1,6 @@ +// Copyright 2020 the Piet Authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! Code useful for multiple backends use std::ops::{Bound, Range, RangeBounds};