Pārlūkot izejas kodu

fixed font file not found (fixed issue #1679)

Simon Krajewski 12 gadi atpakaļ
vecāks
revīzija
ccb8c71d3b
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      genswf.ml

+ 1 - 0
genswf.ml

@@ -832,6 +832,7 @@ let build_swf9 com file swc =
 			let rec loop = function
 				| [] -> acc
 				| (Meta.Font,(EConst (String file),p) :: args,_) :: l ->
+					let file = try Common.find_file com file with Not_found -> file in
 					let ch = try open_in_bin file with _ -> error "File not found" p in
 					let ttf = Ttf.parse ch in
 					close_in ch;