Skia-python

Latest version: v87.6

Safety actively analyzes 682404 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 5

132.b11

Since m131:
- `PathEffect.{DashType, DashInfo, asADash}` withdrawn.
Upstream removed them from public API in m132.

- We now bundle a `icudtl.dat` for windows. This fixes windows-specific problems
with SkUnicode, libSkShaper, and SkParagraph. Thanks meetwq for the change.
Relevant CI tests re-enabled and added.

- Upstream's `SkNamedTransferFn::*` now available as `cms.NamedTransferFn.*`,
and `SkNamedGamut::*` as `cms.NamedGamut.*`. These are used in RuntimeEffect-related
code.

- More overloads of `SkImage::makeShader` added, and `SkImage::makeRawShader` added
as `Image.makeRawShader`.

- We binds `SkRuntimeEffect` as `skia.RuntimeEffect`. Added some helper classes:
`SkV3` as `skia.V3`, `SkV4` as `skia.V4`,
`SkRuntimeEffect::Result` as `RuntimeEffectResult`,
`SkRuntimeEffect::ChildPtr` as `RuntimeEffectChildPtr`,
`SkRuntimeEffectBuilder` as `RuntimeEffectBuilder`,
`std::vector<SkRuntimeEffect::ChildPtr>` as `VectorRuntimeEffectChildPtr`,
`SkSpan<const SkRuntimeEffect::ChildPtr>` as `SpanRuntimeEffectChildPtr`,
`SkRuntimeEffectBuilder::BuilderUniform` as `RuntimeEffectBuilderUniform`,
`SkRuntimeEffectBuilder::BuilderChild` as `RuntimeEffectBuilderChild`.
Details are subjected to change. We ported all 9 of current upstream SkSL c++ examples,
hosted [elsewhere](https://github.com/HinTak/skia-python-examples/).

Since m130:

- We now build for Mac OS 13 (12 deprecated at github), and support python 3.13

- GL examples and tests updated, to restrict "Mac OS friendly" GL settings to Mac only.
Some Linux installations - specifically, inside github CI - are sensitive to those;
typical desktop linux boxes with real graphic cards seem not to be affected.

- `PDF.StructureElementNode.fAdditionalNodeIds` withdrawn.
`SkPDF::StructureElementNode::fAdditionalNodeIds` removed upstream.

What's Changed
* Sk runtime effect binding by HinTak in https://github.com/kyamagu/skia-python/pull/274
* Make GL version setting specific to Mac OS only by HinTak in https://github.com/kyamagu/skia-python/pull/267
* M131 public by HinTak in https://github.com/kyamagu/skia-python/pull/272
* M131 public py3.13 2nd try by HinTak in https://github.com/kyamagu/skia-python/pull/275
* V130.b10+py3.13 by HinTak in https://github.com/kyamagu/skia-python/pull/277
* Icudtl.dat fix try 2 by HinTak in https://github.com/kyamagu/skia-python/pull/279
* M132 public by HinTak in https://github.com/kyamagu/skia-python/pull/281


**Full Changelog**: https://github.com/kyamagu/skia-python/compare/v130.b10...v132.b11

130.b10

Since m129:

* Upstream removed `SkColorFilter::filterColor`, so `ColorFilter.filterColor` is now emulated.


Since m128 (last beta release):

* We now build for Mac OS 11.0 (instead of 10.13; github CI warning)

* We now bind uptream's experimental `skparagraph` module and the `SkParagraph` class,
to provide multi-line text paragraph layout.
The functionality is under the `skia.textlayout` namespace, as `Paragraph`, etc.

* There is a `FontMgr.OneFontMgr()` method which takes a font file or data, which returns
a font manager having knowledge of exactly one font. `FontMgr.New_Custom_Empty()` has been
overloaded as an alias to this, too.

* The `SkUnicode` class is now available under python as `skia.Unicode`.
The constructor is known to fail on windows - It is likely that downloading
a `icudtl.dat` file, renaming from the versioned data-bin-{l,b}.zip in
https://github.com/unicode-org/icu/releases, is needed. Windows users please report
success/failure on this.

* There are two examples `shape_text.py` (a python port of upstream's example), and
`skparagraph-example.py` hosted [elsewhere](https://github.com/HinTak/skia-python-examples/).

* Note that the entire `skparagraph` module is still experimental and subjected to change.
Font choices on Linux are sensitive to LANG and FC_LANG, and you may need to set/unset
them for desired outcome.
See [filed issue upstream](https://issues.skia.org/361963992) for details and updates.

* Improved preview of default arguments in function signatures

* Some parametric tests involving `skia.SurfaceProps` removed during the m87->m116 changes
are re-added.


What's Changed
* Update README.md by HinTak in https://github.com/kyamagu/skia-python/pull/255
* Skparagraph binding by HinTak in https://github.com/kyamagu/skia-python/pull/258
* fix to pre-release CI cache management by HinTak in https://github.com/kyamagu/skia-python/pull/256
* M129 public by HinTak in https://github.com/kyamagu/skia-python/pull/260
* M130 public by HinTak in https://github.com/kyamagu/skia-python/pull/265

**Full Changelog**: https://github.com/kyamagu/skia-python/compare/v128.0b9...v130.b10

128.0b9

Since m127:

* Vulkan symbols are renamed to skgpu::* . We use the older GrVk* forms,
but also alias them to skgpu.Vulkan* , under the skia.skgpu namespace
(i.e. similar to upstream's skgpu::, with python syntax), so that both
m87-like and current continue to work.

Since m126:

* CentOS 7 EOL on 1 Jul 2024: small update to how we build the packages; We now more explicitly
build for mac os 10.13+ in Skia.

* Adding references and code snipplets to OpenGL settings for Apple users. fixes 214

* GrVkExtensionFlags & GrVkFeatureFlags removed upsteam.

* Some redirections/aliases are added to allow newly written python codes to look like
their current C counterparts (in addition to supporting a m87-like API).
We also added some direct calls to currently APIs which were accessible
only via m87-like emulations. Re-enabled a few parameterized tests removed
during the m87->m116 transition.

What's Changed
* Improve "convert to PIL" example by lucach in https://github.com/kyamagu/skia-python/pull/250
* M128 public by HinTak in https://github.com/kyamagu/skia-python/pull/253
* Adding references and code snipplets to OpenGL settings for Apple users by HinTak in https://github.com/kyamagu/skia-python/pull/249
* M127 public by HinTak in https://github.com/kyamagu/skia-python/pull/251


**Full Changelog**: https://github.com/kyamagu/skia-python/compare/v126.0b8...v128.0b9

126.0b8

No user-visible change between m125 and m126
(SkCanvas::drawArc overloaded; Not adding SkArc class yet)

New to m125:

* Metal-enabled on Mac OS, and added Metal APIs equivalents to Vulkan's.


Changes since m124:

* Dropping Python 3.7 support

* GrContext_Base.defaultBackendFormat and GrContext_Base.compressedBackendFormat
re-enabled (disabled between m87 and m116)

* Corrected two typos in Vulkan code

* MemoryStream.asData and MemoryStream.skipToAlign4 now emulated
(changed/removed upstream)


What's Changed
* M126 public by HinTak in https://github.com/kyamagu/skia-python/pull/248
* M125 public by HinTak in https://github.com/kyamagu/skia-python/pull/244


**Full Changelog**: https://github.com/kyamagu/skia-python/compare/v124.0b7...v126.0b8

124.0

* The skia.SamplingOptions class has been fleshed out. See [README.m124](https://github.com/kyamagu/skia-python/blob/main/relnotes/README.m124.md) to migrate from m87 FilterQuality-based code.

What's Changed

* Vulkan initialization has changed.
* skia.Paint().getBlendMode() is now emulated.
* Upstream deleted SkFontMgr::RefDefault(); copied into skia-python to allow python code to continue to work
* M124 public by HinTak in https://github.com/kyamagu/skia-python/pull/236
* M123 public by HinTak in https://github.com/kyamagu/skia-python/pull/234
* M122 public by HinTak in https://github.com/kyamagu/skia-python/pull/232
* `git-sync-deps` seems to no longer require or support Python 2 by pavpanchekha in https://github.com/kyamagu/skia-python/pull/245

New Contributors
* pavpanchekha made their first contribution in https://github.com/kyamagu/skia-python/pull/245

Special thanks for pavpanchekha for fixing "Identify what breaks in m122 for font(typeface("")) on mac os" https://github.com/kyamagu/skia-python/issues/241 , which happened after the v122+ developement.

See [README.m122](https://github.com/kyamagu/skia-python/blob/main/relnotes/README.m122.md) , [README.m123](https://github.com/kyamagu/skia-python/blob/main/relnotes/README.m123.md) , [README.m124](https://github.com/kyamagu/skia-python/blob/main/relnotes/README.m124.md) for details since v121.0 .

**Full Changelog**: https://github.com/kyamagu/skia-python/compare/v121.0b6...v124.0b7

124.0b7

Page 1 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.