Check-in [d76cdf291b]

Login
FlightAware bounty program for improvements to Tcl and certain Tcl packages.

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add TIP #507 (Include simple svg support with nanosvg) from René Zaumseil
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:d76cdf291bb6490beff60ae957d3c90bdd26cfadcc2a4d1a094b5e9a6c7a04d5
User & Date: fvogel 2018-05-13 16:17:56
Context
2018-05-13
18:36
Added TIP #508: New subcommand [array default] check-in: bff18ba5f1 user: fbonnet tags: trunk
16:17
Add TIP #507 (Include simple svg support with nanosvg) from René Zaumseil check-in: d76cdf291b user: fvogel tags: trunk
2018-05-03
15:47
Add branch-name for ongoing TIP #497 implementation. Other typo. check-in: 981d899cc3 user: jan.nijtmans tags: trunk
Changes

Changes to index.json.

cannot compute difference between binary files

Changes to index.md.

87
88
89
90
91
92
93







94
95
96
97
98
99
100
<th>#</th>
<th>Type</th>
<th>Tcl Version</th>
<th>Status</th>
<th>Title</th>
</tr></thead><tbody>








<tr class='project projectdraft projectdraft90 project90'>
<td valign='top'><a href='./tip/506.md'>506</a></td>
<td valign='top'>Project</td>
<td valign='top'>9.0</td>
<td valign='top'>Draft</td>
<td valign='top'># TIP 506: Purge RefCount Macros</td>
</tr>







>
>
>
>
>
>
>







87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<th>#</th>
<th>Type</th>
<th>Tcl Version</th>
<th>Status</th>
<th>Title</th>
</tr></thead><tbody>

<tr class='project projectdraft projectdraft87 project87'>
<td valign='top'><a href='./tip/507.md'>507</a></td>
<td valign='top'>Project</td>
<td valign='top'>8.7</td>
<td valign='top'>Draft</td>
<td valign='top'># TIP 507: Include simple svg support with nanosvg</td>
</tr>
<tr class='project projectdraft projectdraft90 project90'>
<td valign='top'><a href='./tip/506.md'>506</a></td>
<td valign='top'>Project</td>
<td valign='top'>9.0</td>
<td valign='top'>Draft</td>
<td valign='top'># TIP 506: Purge RefCount Macros</td>
</tr>

Added tip/507.md.











































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# TIP 507: Include simple svg support with nanosvg
	Author:         René Zaumseil <rzaumseil@kkg.ch>
	State:          Draft
	Type:           Project
	Vote:           
	Created:        9-May-2018
	Post-History:   
	Keywords:       Tk
	Tcl-Version:    8.7
-----

# Abstract

Tk needs scalable images on high res mobile devices.

# Rationale

Tk is running on desktop and mobile devices. The out of the box image formats
do not scale and are to tiny on high res mobile devices.
The same goes for the image formats provided by the img extension.

There is already an tk image extension at https://github.com/auriocus/tksvg
The implementation is using nanosvg. It has no other external dependencies
and is only 2 header files.

The original nanosvg project is hosted at https://github.com/memononen/nanosvg

# Specification

The already existing tksvg extension will be adapted and included in Tk.
A new image format will be created. The name is **svgnano**.

# Discussion

- nanosvg is no full svg library
- the name of the image format should mention this (p.e. **nanosvg** or
**svgnano**)
- are there better libraries with our requirements (C only, license)?

# Implementation

A patch implementing these changes will be available in the fossil repository in the [tip-507 branch]
(https://core.tcl.tk/tk/timeline?r=tip-507).

Documentation updates not yet done.

# Alternatives

- using another library with full svg support

# Copyright

This document has been placed in the public domain.