{ "prefbar:info": { "formatversion": 3 }, "prefbar:menu:enabled": { "items": [ "prefbar:button:fontset_ja_RobotoJAA" ] }, "prefbar:button:fontset_ja_RobotoJAA": { "type": "extcheck", "label": "フォントセット(RobotoJAA)", "setfunction": "function set_fontset_ja_RobotoJAA(value, button, event) {\n if (value) {\n goPrefBar.SetPref(\"font.default.ja\",\t\t\"sans-serif\");\n goPrefBar.SetPref(\"font.name.serif.ja\",\t\t\"RobotoJAA\");\n goPrefBar.SetPref(\"font.name.sans-serif.ja\",\t\"RobotoJAA\");\n goPrefBar.SetPref(\"font.size.variable.ja\",\t\t14);\n goPrefBar.SetPref(\"font.size.fixed.ja\",\t\t14);\n }\n else {\n goPrefBar.SetPref(\"font.default.ja\", \"serif\");\n goPrefBar.ClearPref(\"font.name.serif.ja\");\n goPrefBar.ClearPref(\"font.name.sans-serif.ja\");\n goPrefBar.ClearPref(\"font.size.variable.ja\");\n goPrefBar.ClearPref(\"font.size.fixed.ja\");\n }\n}\nset_fontset_ja_RobotoJAA(value, button, event);\n", "getfunction": "function get_fontset_ja_RobotoJAA() {\n var value =\n (goPrefBar.GetPref(\"font.default.ja\")\t\t== \"sans-serif\" &&\n goPrefBar.GetPref(\"font.name.serif.ja\")\t\t== \"RobotoJAA\" &&\n goPrefBar.GetPref(\"font.name.sans-serif.ja\")\t== \"RobotoJAA\");\n return value;\n}\nvalue = get_fontset_ja_RobotoJAA();\n" } }