Skip to content

Commit

Permalink
Fix tess viewer compile
Browse files Browse the repository at this point in the history
Disable TextContent Viewers in non-Skia renderers as the Harfbuzz RenderFont is provided by the SkiaRenderer (we should consider moving this to Rive directly or some RiveBaseRenderer library).

I was getting errors like this:
```
textpath_content.cpp
../src/viewer_content/text_content.cpp:20:10: fatal error: 'renderfont_hb.hpp' file not found
#include "renderfont_hb.hpp"
         ^~~~~~~~~~~~~~~~~~~
1 error generated.
```

I could've just had the Viewer always depend on the SkiaRenderer, but I think it's better to consider where we really want the HB RenderFont to live...

Diffs=
8dd7e91cd fix viewer build
  • Loading branch information
mikerreed committed Jul 20, 2022
1 parent 5e77137 commit 2059aff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
412ab8f4d73858bb91cf138ac4cd083374a34cda
8dd7e91cd9fb93fe067ff4228eabbb1cc07083e0
2 changes: 1 addition & 1 deletion submodules/rive-cpp

0 comments on commit 2059aff

Please sign in to comment.