Skip to content

Conversation

@NeroBurner
Copy link
Collaborator

Since InfiniTimeOrg/InfiniTime#1097 the fonts
are generated. Support this new way of using fonts.

@Riksu9000
Copy link
Contributor

This seems to fail when using an external InfiniTime repo, because it's not a subdirectory of InfiniSim.

CMake Error at CMakeLists.txt:244 (add_subdirectory):
  add_subdirectory not given a binary directory but the given source
  directory "/home/riku/src/InfiniTime/src/displayapp/fonts" is not a
  subdirectory of "/home/riku/src/InfiniSim".  When specifying an out-of-tree
  source a binary directory must be explicitly specified.

Copy link

@yehoshuapw yehoshuapw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't check to make sure it works, since it seems that has been done already - but looks good.
thanks!

@JF002 JF002 mentioned this pull request May 14, 2022
Copy link
Contributor

@JF002 JF002 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works for me, both on the "older" develop branch (when the fonts were not generated by cmake) and with the new one (with font generated by cmake)!

Since InfiniTimeOrg/InfiniTime#1097 the fonts
are generated. Support this new way of using fonts.

When InfiniTime isn't a subdirectory of InfiniSim we need to provide
the binary dir when using `add_subdirectory()`. Use `fonts`.

Update README with instructions to install `lv_font_conv`.
@NeroBurner NeroBurner force-pushed the auto-generate-fonts-from-infinitime branch from 7c938b0 to 594cd5e Compare May 14, 2022 19:25
@NeroBurner NeroBurner merged commit f0c6ef9 into main May 14, 2022
@NeroBurner NeroBurner deleted the auto-generate-fonts-from-infinitime branch May 14, 2022 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants