For details see forum discussion: https://www.klayout.de/forum/comments.php?DiscussionID=997&page=1#Comment_4554