Commit graph

18 commits

Author SHA1 Message Date
Joel Addison
fe8515a1c3 Further badge font size adjustments
Allow all of the free text to be rendered.
Shrink font size if more than 40 characters in free text line.
2020-01-07 21:04:14 +10:00
Joel Addison
f89c4f9b2d Adjust badge font sizes
Allow more free text to fit on the badge.
Shrink size of name and company.
2020-01-07 16:37:51 +10:00
Joel Addison
e394e01e33 Add badge for preview 2020-01-07 00:37:10 +10:00
Tobias
09a6e79e25 Badge edge update 2019-01-18 19:59:58 +13:00
Tobias
31b7c27dbd Fix the definitely intended typo on our badge 2019-01-18 07:25:23 +13:00
Tobias
811571b54c Fix svg font size 2019-01-17 13:35:24 +13:00
Tobias
8fe96fdcc5 Fix typo 2019-01-17 12:50:56 +13:00
Tobias
aa444a0e94 Update name wrapping code 2019-01-17 12:36:14 +13:00
Tobias
289892458c Upload SVG badge 2019-01-17 11:07:18 +13:00
Sachi King
763f69cb61 Add overlay badge support
Support so print can print only important text.

SVG modified to use display:inline/none based on overlay True/False and
a symlink to make it easy to change to a completely seperate svg if that
is not optimal.

SVG added layers to split text and graphic so graphics can be easily
hidden and printed.

Closes: #38
2018-01-20 12:36:09 +11:00
James Polley
1a2b4f4688 Company isn't shown for hobbyists/students/day tickets 2018-01-15 02:52:11 +11:00
James Polley
39669055ef Update badge rendering to reflect actual render
* Switch to showing the PNG version by default, as this reflects what
  will actually be rendered and sent to the printer
* Include the greyscale filter
* Include the twemoji font we'll use for rendering the badges
2018-01-15 00:30:30 +11:00
James Polley
c15848bfce Fix off-by-one errors in ticket categories 2018-01-09 04:29:00 +00:00
James Polley
c478fb8454 Update badge template 2018-01-07 17:45:33 +11:00
James Polley
d4ca04bada * Fix categories for badge icons, company names
* Company names had a misspelled filter and weren't being displayed
* Add some conditional logic so that company names don't get shown for
  hobbyists or students
2017-12-27 02:51:57 +11:00
James Polley
f675580d6b Add support for badge PDFs also
* Add a greyscale filter to text for more accurate preview
* Always default to SVG preview as it's the most accurate (cairo
  doesn't do a great job of handling custom fonts when it converts to
  png/pdf)
* Always use roboto font.
2017-12-26 23:55:09 +11:00
James Polley
d14048bcb8 Further changes to support badge generation for lca2018
* Undo some of the debugging done early in this series of patches
* Add ability for a user to preview their own badge
* Add a template for the LCA2018 badge
2017-12-26 21:01:40 +11:00
Sachi King
9ab075e51c Badges work by copy-pasting lca2017/pyconau2017 code around
WIP - Push for share
2017-12-26 04:24:20 +00:00