JuliaGizmos / Escher.jl

Composable Web UIs in Julia
https://juliagizmos.github.io/Escher.jl
Other
335 stars 63 forks source link

Error indicated when using Escher.fonttype method #170

Open kkruups opened 7 years ago

kkruups commented 7 years ago

Problem: sanserif error indicated when using Escher.fonttype method

Expected: expected font type to change to sanserif font without error

Error Message

Error handling websocket connection: UndefVarError: sanserif not defined in main at C:\sandbox\julia_sandbox\escherbox\demo.jl:7

How to reproduce (code snippet) Use sanserif as argument for fonttype method Behavior exhibited using code snippet below

`
 function main(window)

    title(4, "Julia Rules!") |> pad(1em) |> fonttype(sanserif) |> fontcase(lcase) 
           |> textalign(centertext) |>                fillcolor("tomato")

end
`

Additional Info (also fonttype does not appear to change when executing other fonttypes, slabserif, serif, monospace with Escher.fonttype method, the same font is displayed < see png image > )

Environment julia v0.4.6 (using repl) Escher v0.3.2 Win7 Chrome Browser Version 51.0.2704.106 m