Skip to content

Build issues on macOS after core-text update #1592

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
waywardmonkeys opened this issue Aug 21, 2017 · 2 comments
Closed

Build issues on macOS after core-text update #1592

waywardmonkeys opened this issue Aug 21, 2017 · 2 comments

Comments

@waywardmonkeys
Copy link
Contributor

There was an update of core-text to 6.1.1 which bumped the versions of core-graphics and core-foundation that get used. This results in build issues on macOS now due to using 2 different versions of those crates:

error[E0308]: mismatched types
  --> webrender/src/platform/macos/font.rs:80:37
   |
80 |     ct_font.draw_glyphs(&[glyph], &[point], cg_context.clone());
   |                                     ^^^^^ expected struct `core_graphics::geometry::CGPoint`, found struct `core_graphics::display::CGPoint`
   |
   = note: expected type `core_graphics::geometry::CGPoint`
              found type `core_graphics::display::CGPoint`

error[E0308]: mismatched types
  --> webrender/src/platform/macos/font.rs:80:45
   |
80 |     ct_font.draw_glyphs(&[glyph], &[point], cg_context.clone());
   |                                             ^^^^^^^^^^^^^^^^^^ expected struct `core_graphics::context::CGContext`, found a different struct `core_graphics::context::CGContext`
   |
   = note: expected type `core_graphics::context::CGContext` (struct `core_graphics::context::CGContext`)
              found type `core_graphics::context::CGContext` (struct `core_graphics::context::CGContext`)
note: Perhaps two different versions of crate `core_graphics` are being used?
  --> webrender/src/platform/macos/font.rs:80:45
   |
80 |     ct_font.draw_glyphs(&[glyph], &[point], cg_context.clone());
   |                                             ^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
   --> webrender/src/platform/macos/font.rs:214:25
    |
214 |                         cg_font,
    |                         ^^^^^^^ expected struct `core_graphics::font::CGFont`, found a different struct `core_graphics::font::CGFont`
    |
    = note: expected type `&core_graphics::font::CGFont` (struct `core_graphics::font::CGFont`)
               found type `&core_graphics::font::CGFont` (struct `core_graphics::font::CGFont`)
note: Perhaps two different versions of crate `core_graphics` are being used?
   --> webrender/src/platform/macos/font.rs:214:25
    |
214 |                         cg_font,
    |                         ^^^^^^^

error[E0308]: mismatched types
   --> webrender/src/platform/macos/font.rs:394:41
    |
394 |         ct_font.draw_glyphs(&[glyph], &[rasterization_origin], cg_context.clone());
    |                                         ^^^^^^^^^^^^^^^^^^^^ expected struct `core_graphics::geometry::CGPoint`, found struct `core_graphics::display::CGPoint`
    |
    = note: expected type `core_graphics::geometry::CGPoint`
               found type `core_graphics::display::CGPoint`

error[E0308]: mismatched types
   --> webrender/src/platform/macos/font.rs:394:64
    |
394 |         ct_font.draw_glyphs(&[glyph], &[rasterization_origin], cg_context.clone());
    |                                                                ^^^^^^^^^^^^^^^^^^ expected struct `core_graphics::context::CGContext`, found a different struct `core_graphics::context::CGContext`
    |
    = note: expected type `core_graphics::context::CGContext` (struct `core_graphics::context::CGContext`)
               found type `core_graphics::context::CGContext` (struct `core_graphics::context::CGContext`)
note: Perhaps two different versions of crate `core_graphics` are being used?
   --> webrender/src/platform/macos/font.rs:394:64
    |
394 |         ct_font.draw_glyphs(&[glyph], &[rasterization_origin], cg_context.clone());
    |                                                                ^^^^^^^^^^^^^^^^^^

error: aborting due to previous error(s)
@nox
Copy link
Contributor

nox commented Aug 21, 2017

rthomas added a commit to rthomas/core-text-rs that referenced this issue Aug 22, 2017
Due to servo/webrender#1592 the dependency upgrade was reverted for 6.x
and added to 7.x.
@glennw
Copy link
Member

glennw commented Sep 4, 2017

I believe this is resolved now.

@glennw glennw closed this as completed Sep 4, 2017
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

No branches or pull requests

3 participants