Selaa lähdekoodia

更新 'main.py'

junhuanchen 1 vuosi sitten
vanhempi
commit
ce8b5dc7e0
1 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 4 4
      main.py

+ 4 - 4
main.py

@@ -118,14 +118,14 @@ demo_n=0
 pressTime=0
 systemRunNum=0
 
-image.load_freetype("/root/preset/fonts/SourceHanSansCN-Regular.otf")
+image.load_freetype("/root/preset/fonts/simhei.ttf")
 def screenFirstPage():
     from maix import display,image,camera
     global splash,title_logo_text,btn_col,btn_row,splash_text,txt_unselected,txt_selected,btn_selected,btn_unselected,\
 splash_theme_color,btn_height,btn_width,main_title,menuSelect,gc_log,demo_i,demo_j,demo_m,demo_n,screenShow,img_drop,\
 frostedGlass
     gc_log()
-    image.load_freetype("/root/preset/fonts/SourceHanSansCN-Regular.otf")
+    image.load_freetype("/root/preset/fonts/simhei.ttf")
     splash.clear()
     splash.draw_rectangle(0,0,320,320,color=splash_theme_color,thickness=-1)
     splash.draw_image(title_logo_text, btn_col[0]+16, 10)
@@ -173,7 +173,7 @@ splash_theme_color,btn_height,btn_width,main_title,demoSelect,gc_log,color_splas
 color_white,color_gray,color_orange,color_red,iconUpNp,iconUpP,iconDownNp,iconDownP,demoListText,screenShow,img_drop,\
 frostedGlass
     gc_log()
-    image.load_freetype("/root/preset/fonts/SourceHanSansCN-Regular.otf")
+    image.load_freetype("/root/preset/fonts/simhei.ttf")
     splash.clear()
     splash.draw_rectangle(0,0,320,240,color=splash_theme_color,thickness=-1)
     splash.draw_rectangle(0,0,320,32,color=color_blue,thickness=-1)
@@ -226,7 +226,7 @@ def systemPage():
 splash_theme_color,btn_height,btn_width,main_title,demoSelect,gc_log,color_splash_theme,color_blue,color_blue_lighter,\
 color_white,color_gray,color_orange,color_red,iconUpNp,iconUpP,iconDownNp,iconDownP,demoListText,screenShow,img_drop,\
 frostedGlass
-    image.load_freetype("/root/preset/fonts/SourceHanSansCN-Regular.otf")
+    image.load_freetype("/root/preset/fonts/simhei.ttf")
     for i in range(10):
         splash.draw_image(frostedGlass, 0, 0,alpha=0.2)
         #screenShow()