GithubHelp home page GithubHelp logo

Comments (3)

treeform avatar treeform commented on June 16, 2024

Some how your typography is out of date.

image

Last change was 23 days ago.

from fidget.

retsyo avatar retsyo commented on June 16, 2024

no

$ nimble install typography
Downloading https://github.com/treeform/typography using git
Verifying dependencies for [email protected]
Warning: No nimblemeta.json file found in C:\Users\USER.nimble\pkgs\wxnim-0.8.0
Info: Dependency on flippy@>= 0.4.4 already satisfied
Verifying dependencies for [email protected]
Info: Dependency on vmath@>= 0.1.0 already satisfied
Verifying dependencies for [email protected]
Info: Dependency on chroma@>= 0.0.1 already satisfied
Verifying dependencies for [email protected]
Info: Dependency on print@>= 0.1.0 already satisfied
Verifying dependencies for [email protected]
Info: Dependency on nimPNG@>= 0.2.6 already satisfied
Verifying dependencies for [email protected]
Info: Dependency on snappy@>= 0.1.0 already satisfied
Verifying dependencies for [email protected]
Info: Dependency on vmath@>= 0.3.1 already satisfied
Verifying dependencies for [email protected]
Info: Dependency on chroma@>= 0.0.1 already satisfied
Verifying dependencies for [email protected]
Info: Dependency on print@>= 0.1.0 already satisfied
Verifying dependencies for [email protected]
Installing [email protected]
Success: typography installed successfully.

$ git clone https://github.com/treeform/fidget
Cloning into 'fidget'...
remote: Enumerating objects: 239, done.
remote: Counting objects: 100% (239/239), done.
remote: Compressing objects: 100% (150/150), done.
imalReceiving objects: 13% (561/4261), 892.01 KiB | 48.00 KiB/s
remote: Total 4261 (delta 110), reused 171 (delta 65), pack-reused 4022
Receiving objects: 100% (4261/4261), 12.11 MiB | 98.00 KiB/s, done.
Resolving deltas: 100% (2686/2686), done.

$ cd fidget/examples/minimal

$ nim c -r minimal.nim
Hint: used config file 'E:\msys64\home\LOVLJIDY_nim\nim\config\nim.cfg' [Conf]
Hint: used config file 'E:\msys64\home\LOVLJIDY_nim\nim\config\config.nims' [Conf]
Hint: used config file 'R:\fidget\config.nims' [Conf]
Hint: used config file 'R:\fidget\examples\config.nims' [Conf]
.....................................................................................
R:\fidget\src\fidget\openglbackend.nim(31, 25) Error: type mismatch: got <Font, seq[Rune], pos: Vec2, size: Vec2, HAlignMode, VAlignMode, clip: bool, boundsMin: Vec2, boundsMax: Vec2>
but expected one of:
proc typeset(font: Font; runes: seq[Rune]; pos: Vec2 = vec2(0, 0);
size: Vec2 = vec2(0, 0); hAlign: HAlignMode = Left; vAlign: VAlignMode = Top;
clip = true; tabWidth: float32 = 0.0): seq[GlyphPosition]
first type mismatch at position: 8
unknown named parameter: boundsMin
proc typeset(font: Font; text: string; pos: Vec2 = vec2(0, 0); size: Vec2 = vec2(0, 0);
hAlign: HAlignMode = Left; vAlign: VAlignMode = Top; clip = true;
tabWidth: float32 = 0.0): seq[GlyphPosition]
first type mismatch at position: 2
required type for text: string
but expression 'toRunes(node.text)' is of type: seq[Rune]

expression: typeset(font, toRunes(node.text), pos = vec2(0, 0), size = size,
hAlignMode(node.textStyle.textAlignHorizontal),
vAlignMode(node.textStyle.textAlignVertical), clip = false,
boundsMin = boundsMin, boundsMax = boundsMax)

from fidget.

treeform avatar treeform commented on June 16, 2024

I think you have fidget installed through nimble as well that is out of date.

try nimble develop in the cloned fidget folder.

Maybe try git clone https://github.com/treeform/typography and nimble develop in that folder too?

from fidget.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.