As shown above, simply watching a directory for changes does not automatically retrieve the changed file. In this case the FontCache needs any TTF fonts unpacked locally before being reset.
Example reload on resource change:
resource.addListener( new ResourceListener(){ public void changed( ResourceNotification notify ){ File file = notify.resource().file(); // unpack locally reload( file ); } });
|
|