{"action":"created","issue":{"url":"https://api.github.com/repos/reutenauer/polyglossia/issues/134","repository_url":"https://api.github.com/repos/reutenauer/polyglossia","labels_url":"https://api.github.com/repos/reutenauer/polyglossia/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/reutenauer/polyglossia/issues/134/comments","events_url":"https://api.github.com/repos/reutenauer/polyglossia/issues/134/events","html_url":"https://github.com/reutenauer/polyglossia/issues/134","id":135329975,"number":134,"title":"Caption and pseudo code in algorithm2e appears as boxes (not rendered) using polyglossia","user":{"login":"sereysethy","id":12994180,"avatar_url":"https://avatars.githubusercontent.com/u/12994180?v=3","gravatar_id":"","url":"https://api.github.com/users/sereysethy","html_url":"https://github.com/sereysethy","followers_url":"https://api.github.com/users/sereysethy/followers","following_url":"https://api.github.com/users/sereysethy/following{/other_user}","gists_url":"https://api.github.com/users/sereysethy/gists{/gist_id}","starred_url":"https://api.github.com/users/sereysethy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sereysethy/subscriptions","organizations_url":"https://api.github.com/users/sereysethy/orgs","repos_url":"https://api.github.com/users/sereysethy/repos","events_url":"https://api.github.com/users/sereysethy/events{/privacy}","received_events_url":"https://api.github.com/users/sereysethy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-02-22T06:30:54Z","updated_at":"2016-02-22T08:13:14Z","closed_at":null,"body":"I want to create a multi-language document using `polyglossia` in which `Khmer` is set to be a main language and `English` as another language. I also have `khmer-gloss.ldf` available so that Khmer font is a default font. I used to `algorithm2e` to typeset pseudo code, but strangely all pseudo codes appears as boxes as in picture below and even caption does not display either. I know it is the problem of font but I am pretty new to `polyglossia` package. Anybody knows how to solve this problem? The below pseudo code is just an example.\r\n\r\n```\r\n\\documentclass{article}\r\n\\usepackage{polyglossia}\r\n\\usepackage{amsthm}\r\n\\usepackage{amssymb,amsmath}\r\n\\usepackage[linesnumbered,ruled]{algorithm2e}\r\n\r\n\\newfontfamily{\\khmerfont}[Script=Khmer,BoldFont={Khmer OS Content},ItalicFont={Khmer OS Content},Scale=0.9]{Khmer OS Content}\r\n\\usepackage{fontspec}\r\n\\newfontfamily{\\K}[Scale=0.90]{Khmer OS Content}\r\n\\newfontfamily{\\T}[Scale=0.90]{Khmer OS Moul}\r\n\r\n\\setmainlanguage{khmer}\r\n\\setsansfont[Script=Khmer,Scale=0.95]{Khmer OS Content}\r\n\\setmonofont[Script=Khmer,Scale=0.95]{Khmer OS Content}\r\n\\setotherlanguage{english}\r\n\r\n\\begin{document}\r\nអាល់កូរីតដើម្បីរកតួចែករួមធំបំផុត (\\textenglish{PGCD})។\r\n\\begin{algorithm}\r\n\\begin{english}\r\n    \\SetKwInOut{Input}{\\textenglish{Input}}\r\n    \\SetKwInOut{Output}{\\textenglish{Output}}\r\n\r\n    \\underline{function Euclid} $(a,b)$\\;\r\n    \\Input{Two non negative integers $a$ and $b$}\r\n    \\Output{$\\gcd(a,b)$}\r\n    \\eIf{$b=0$}\r\n      {\r\n        return $a$\\;\r\n      }\r\n      {\r\n        return Euclid$(b, a \\mod b)$\\;\r\n      }\r\n    \\caption{\\textenglish{Euclid's algorithm for finding the greatest common divisor of two non negative integers}}\r\n\\end{english}\r\n\\end{algorithm}\r\n\r\n\\end{document}\r\n```\r\n<img width=\"450\" alt=\"waclc\" src=\"https://cloud.githubusercontent.com/assets/12994180/13211043/abe8a41c-d967-11e5-88b3-bce1146f9e75.png\">\r\n\r\nJust for reference, the package `algorithm` is working fine with `polyglossia` I just need to typeset the following:\r\n```\r\n\\begin{algorithm}\r\n\\begin{english}\r\n   \\caption{Merge Sort}\r\n   \\begin{algorithmic}[1]\r\n    ...\r\n    ...\r\n   \\end{algorithmic}\r\n\\end{english}\r\n\\end{algorithm}\r\n```"},"comment":{"url":"https://api.github.com/repos/reutenauer/polyglossia/issues/comments/187063864","html_url":"https://github.com/reutenauer/polyglossia/issues/134#issuecomment-187063864","issue_url":"https://api.github.com/repos/reutenauer/polyglossia/issues/134","id":187063864,"user":{"login":"sereysethy","id":12994180,"avatar_url":"https://avatars.githubusercontent.com/u/12994180?v=3","gravatar_id":"","url":"https://api.github.com/users/sereysethy","html_url":"https://github.com/sereysethy","followers_url":"https://api.github.com/users/sereysethy/followers","following_url":"https://api.github.com/users/sereysethy/following{/other_user}","gists_url":"https://api.github.com/users/sereysethy/gists{/gist_id}","starred_url":"https://api.github.com/users/sereysethy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sereysethy/subscriptions","organizations_url":"https://api.github.com/users/sereysethy/orgs","repos_url":"https://api.github.com/users/sereysethy/repos","events_url":"https://api.github.com/users/sereysethy/events{/privacy}","received_events_url":"https://api.github.com/users/sereysethy/received_events","type":"User","site_admin":false},"created_at":"2016-02-22T08:13:14Z","updated_at":"2016-02-22T08:13:14Z","body":"Yes I tried with your file `gloss-khmer.ldf` but no luck. I think there is something wrong with my environment, because I can see khmer text is rendered just fine `អាល់កូរីតដើម្បីរកតួចែករួមធំបំផុត`."}}