Skip to content

Commit

Permalink
Updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Dec 14, 2024
1 parent df645e0 commit 646b210
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
12 changes: 10 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,22 @@ let package = Package(
products: [
.library(
name: "Cairo",
targets: ["Cairo"]),
targets: ["Cairo"]
)
],
dependencies: [
.package(
url: "https://github.com/PureSwift/FontConfig.git",
branch: "master"
)
],
targets: [
.target(
name: "Cairo",
dependencies: [
"CCairo",
"CFreeType"
"CFreeType",
"FontConfig"
]
),
.testTarget(
Expand Down
5 changes: 3 additions & 2 deletions Sources/Cairo/Font.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import CCairo
import CFreeType
import FontConfig

public final class ScaledFont {

Expand Down Expand Up @@ -266,8 +267,8 @@ public final class FontFace {
cairo_font_face_destroy(internalPointer)
}

public init(fontConfigPattern: OpaquePointer) {
self.internalPointer = cairo_ft_font_face_create_for_pattern(fontConfigPattern)!
public init(pattern: FontConfig.Pattern) {
self.internalPointer = pattern.withUnsafePointer(cairo_ft_font_face_create_for_pattern)!
}

internal init(_ internalPointer: OpaquePointer) {
Expand Down

0 comments on commit 646b210

Please sign in to comment.