Commit 45be8458 authored by Paul Asmuth's avatar Paul Asmuth
Browse files

rename text_backend_linux -> text_backend_freetype

parent 9d9be714
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ enable_testing()
# Options
# -----------------------------------------------------------------------------
option(FVIZ_TEXT_ENABLE_BIDI "Enable bi-directional text support" ON)
set(FVIZ_TEXT_BACKEND "linux" CACHE STRING "Set the text backend")
set(FVIZ_TEXT_BACKEND "freetype" CACHE STRING "Set the text backend")
option(FVIZ_TESTING "Builds with testing flags [default: OFF]" OFF)


+3 −3
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@
 */
#include "fviz_config.h"
#include "text_backend.h"
#include "text_backend_linux.h"
#include "text_backend_freetype.h"

namespace fviz::text {

@@ -38,8 +38,8 @@ ReturnCode text_analyze_bidi_line(
  }

  // linux/freetype backend
  if constexpr (TEXT_BACKEND == "linux") {
    return backend_linux::text_analyze_bidi_line(
  if constexpr (TEXT_BACKEND == "freetype") {
    return backend_freetype::text_analyze_bidi_line(
        text_begin,
        text_end,
        text_direction_base,
+2 −2
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@
#include <numeric>
#include <fribidi/fribidi.h>

namespace fviz::text::backend_linux {
namespace fviz::text::backend_freetype {

ReturnCode text_analyze_bidi_line(
    const TextSpan* text_begin,
@@ -117,5 +117,5 @@ ReturnCode text_analyze_bidi_line(
  return OK;
}

} // namespace fviz::text::backend_linux
} // namespace fviz::text::backend_freetype
+2 −2
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@
#include "text.h"
#include "text_layout.h"

namespace fviz::text::backend_linux {
namespace fviz::text::backend_freetype {

/**
 * Analyze a UTF-8 input string in logical character order and produce a list
@@ -33,5 +33,5 @@ ReturnCode text_analyze_bidi_line(
    std::vector<TextSpan>* runs,
    std::vector<int>* run_bidi_levels);

} // namespace fviz::text::backend_linux
} // namespace fviz::text::backend_freetype