Skip to content

Commit

Permalink
un-enable debug messages in CMakeLists.txt
Browse files Browse the repository at this point in the history
Fix subtable break logic (and improve error message)
Fix parsing of empty GOADB lines
  • Loading branch information
skef committed Jan 20, 2025
1 parent 5f635d7 commit f24c7f9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ set(CMAKE_CXX_STANDARD 11)
find_package(Python COMPONENTS Interpreter Development.Module REQUIRED)
find_program(CYTHON "cython")

add_compile_definitions(HOT_DEBUG)
add_compile_definitions(STRIP_EXTERN_C)
# add_compile_definitions(HOT_DEBUG)
# add_compile_definitions(STRIP_EXTERN_C)

list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)

Expand Down
2 changes: 1 addition & 1 deletion c/addfeatures/hotconv/FeatCtx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,7 @@ void FeatCtx::subtableBreak() {
}

if (retval)
featMsg(sWARNING, "subtable break is supported only in class kerning lookups");
featMsg(sWARNING, "subtable break is supported only in pair kerning lookups");
}

// --------------------------------- Lookups -----------------------------------
Expand Down
4 changes: 2 additions & 2 deletions c/addfeatures/hotconv/GPOS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -652,10 +652,10 @@ void GPOS::SinglePos::Format2::write(OTL *h) {
bool GPOS::SubtableBreak() {
if (nw.lkpType != GPOSPair)
/* xxx for now */
return false;
return true;

startNewPairPosSubtbl = true;
return true;
return false;
}

// when returns true gc needs to be inserted by a subsequent call to insertInClassDef()
Expand Down
2 changes: 1 addition & 1 deletion c/shared/goadb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ bool GOADB::read(const char *filename) {
bufs.get(c);

c = bufs.peek();
if (c == '\0' || c == '#')
if (!bufs.good() || c == '\0' || c == '#')
continue; /* Skip blank or comment line */

gr.order = ++order;
Expand Down

0 comments on commit f24c7f9

Please sign in to comment.