go-p5 / p5

p5 is a simple package that provides primitives resembling the ones exposed by p5js.org
https://go-p5.github.io/
BSD 3-Clause "New" or "Revised" License
150 stars 12 forks source link

all: add TextFont and LoadFonts API #57

Closed sbinet closed 2 years ago

sbinet commented 2 years ago

This CL adds an API to change the text font and load user-defined font collections

Fixes #56.

codecov[bot] commented 2 years ago

Codecov Report

Merging #57 (96e6582) into main (82e90d6) will increase coverage by 0.17%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #57      +/-   ##
==========================================
+ Coverage   82.38%   82.55%   +0.17%     
==========================================
  Files           9        9              
  Lines         613      619       +6     
==========================================
+ Hits          505      511       +6     
  Misses         88       88              
  Partials       20       20              
Impacted Files Coverage Δ
context.go 100.00% <ø> (ø)
api.go 65.51% <100.00%> (+2.55%) :arrow_up:
proc.go 71.87% <100.00%> (+0.51%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 82e90d6...96e6582. Read the comment docs.