Skip to content
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

Wrench "Can't font_key_from_name on this platform" #651

Closed
nical opened this issue Dec 15, 2016 · 2 comments
Closed

Wrench "Can't font_key_from_name on this platform" #651

nical opened this issue Dec 15, 2016 · 2 comments
Labels

Comments

@nical
Copy link
Collaborator

@nical nical commented Dec 15, 2016

Running wrench show res/test.yaml, I get the following panic:

#0  std::panicking::rust_panic ()
    at libstd/panicking.rs:482
#1  0x0000555556292dad in std::panicking::rust_panic_with_hook ()
    at libstd/panicking.rs:467
#2  0x0000555555687b94 in std::panicking::begin_panic<&str> (
    msg="Can't font_key_from_name on this platform", 
    file_line=0x555556890950 <wrench::wrench::Wrench::font_key_from_name::_FILE_LINE::ha808b9924869abf3>)
    at libstd/panicking.rs:413
#3  0x00005555557ebf3d in wrench::wrench::Wrench::font_key_from_name (
    self=0x7fffffffbfa8, font_name="Helvetica")
    at wrench/src/wrench.rs:278
#4  0x00005555557f17d9 in wrench::yaml_frame_reader::YamlFrameReader::handle_text (self=0x7fffffffbea8, wrench=0x7fffffffbfa8, clip_region=0x7fffffffaba0, 
    item=0x7ffff05008a0)
    at wrench/src/yaml_frame_reader.rs:128
#5  0x00005555557f2aba in wrench::yaml_frame_reader::YamlFrameReader::add_display_list_items_from_yaml (self=0x7fffffffbea8, wrench=0x7fffffffbfa8, 
    yaml=0x7ffff363dd60)
    at wrench/src/yaml_frame_reader.rs:203
#6  0x00005555557f3268 in wrench::yaml_frame_reader::YamlFrameReader::add_stacking_context_from_yaml (self=0x7fffffffbea8, wrench=0x7fffffffbfa8, 
    yaml=0x7ffff363da60)
    at wrench/src/yaml_frame_reader.rs:250
#7  0x00005555557f0334 in wrench::yaml_frame_reader::YamlFrameReader::build (
    self=0x7fffffffbea8, wrench=0x7fffffffbfa8)
    at wrench/src/yaml_frame_reader.rs:66
#8  0x00005555557f34e5 in wrench::yaml_frame_reader::{{impl}}::do_frame (
    self=0x7fffffffbea8, wrench=0x7fffffffbfa8)
    at wrench/src/yaml_frame_reader.rs:262
#9  0x00005555557fdd1f in wrench::main ()

@kvark
Copy link
Member

@kvark kvark commented Dec 15, 2016

Looks like the font_key_from_name is just missing a non-Windows implementation

@kvark kvark added the type: bug label Dec 15, 2016
@nical
Copy link
Collaborator Author

@nical nical commented Aug 9, 2017

Fixed in 88845d2

@nical nical closed this Aug 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.