Skip to content

fix: upgrade core-graphics to 0.25 for core-text 21.1.0 compatibility#6

Open
noeljackson wants to merge 1 commit intozed-industries:masterfrom
noeljackson:fix/core-graphics-version
Open

fix: upgrade core-graphics to 0.25 for core-text 21.1.0 compatibility#6
noeljackson wants to merge 1 commit intozed-industries:masterfrom
noeljackson:fix/core-graphics-version

Conversation

@noeljackson
Copy link
Copy Markdown

Summary

core-text 21.1.0 (released 2026-01-15) upgraded its core-graphics dependency from 0.24 to 0.25. This caused build failures when font-kit was used as a dependency because it still specified core-graphics 0.24, resulting in two incompatible versions of core-graphics in the dependency tree.

Problem

The symptom was type mismatches like:

expected `core_graphics::font::CGFont`, found a different `core_graphics::font::CGFont`

This is because Rust treats types from different versions of the same crate as distinct types.

Solution

Upgrade core-graphics from 0.24 to 0.25 to match what core-text 21.1.0 requires.

Testing

Tested by building a project that depends on gpui-ce, which uses zed-font-kit. Build succeeds with this fix.

Fixes: zed-industries/zed#47168

core-text 21.1.0 (released 2026-01-15) upgraded its core-graphics
dependency from 0.24 to 0.25. This caused build failures when
font-kit was used as a dependency because it still specified
core-graphics 0.24, resulting in two incompatible versions of
core-graphics in the dependency tree.

The symptom was type mismatches like:
  expected `core_graphics::font::CGFont`, found a different
  `core_graphics::font::CGFont`

This commit upgrades core-graphics to 0.25 to match core-text's
requirement.

Fixes: zed-industries/zed#47168
noeljackson added a commit to noeljackson/gpui-ce that referenced this pull request Feb 3, 2026
core-text 21.1.0 (released 2026-01-15) upgraded its core-graphics
dependency from 0.24 to 0.25. This caused build failures because
gpui-ce still specified core-graphics 0.24, resulting in two
incompatible versions of core-graphics in the dependency tree.

Also updated font-kit reference to use a fixed fork with the same fix.

Related: zed-industries/zed#47168
Related: zed-industries/font-kit#6
noeljackson added a commit to noeljackson/gpui-ce that referenced this pull request Feb 3, 2026
core-text 21.1.0 (released 2026-01-15) upgraded its core-graphics
dependency from 0.24 to 0.25. This caused build failures because
gpui-ce still specified core-graphics 0.24, resulting in two
incompatible versions of core-graphics in the dependency tree.

Also updated font-kit reference to use a fixed fork with the same fix.

Related: zed-industries/zed#47168
Related: zed-industries/font-kit#6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gpui fails to build with font-kit feature on MacOS due new core-text (v21.1.0)

1 participant