Include external fonts for the LVGL library

So I went for the other way. I just copy our custom fonts to the library using a python script like this:


def add_custom_fonts():
    # Specify path
  
    print("root: " +os.getcwd()) #root: /Users/davidtsqr/Source/cufw

    
    # Check whether the specified
    # path exists or not
    srcPath =os.getcwd()+"/fonts/customfonts"
    targetPath = os.getcwd()+"/.pio/libdeps/" + env["PIOENV"] + "/lvgl/src/lv_font/customfonts"
   
    srcExists = os.path.exists(srcPath)
    print(srcPath, " exists: ", srcExists)
    targetExists = os.path.exists(targetPath)
    if not targetExists:
        shutil.copytree(srcPath,targetPath)
   
    
add_custom_fonts()

Works like a charm!!! We now can clone and build. Awesome. Next stop Github Actions :slight_smile: