Compared to the Adobe Illustrator-exported version from SIX, this version is defined on a 166px x 166px viewbox, which are the recommended dimensions with which the cross should be overlaid on top of QR codes. This versions visually matches the PNG version from SIX when rendered onto the same pixel size (166px x 166px). But, this version scales better! The SIX version does not render correctly. My guess is that it might have to do with their use of floating point coordinates.
18 lines
882 B
Go
18 lines
882 B
Go
// Copyright 2020 Google LLC
|
|
//
|
|
// 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
|
|
//
|
|
// https://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.
|
|
|
|
package qrbill
|
|
|
|
//go:generate sh -c "go run third_party/goembed/goembed.go -package qrbill -var swisscross third_party/swiss-cross/CH-Kreuz_7mm/CH-Kreuz_7mm.png third_party/swiss-cross/CH-Kreuz_7mm/CH-Kreuz_7mm.svg swisscross.svg > GENERATED_swisscross.go && gofmt -w GENERATED_swisscross.go"
|