如何将属性设置为<alias>?

时间:2018-07-21 12:26:25

标签: fonts terminal fontconfig

我正在尝试使用默认像素大小和权重配置系统范围的等宽字体。这是我的$userAccountSource = InstagramAccount::with('user', 'schedule')->get(); $feeds = [ json_decode('{"pk":"7853740779","username":"teachkidss","full_name":"..."}'), json_decode('{"pk":"7853740709","username":"teachkidss","full_name":"..."}'), json_decode('{"pk":"7853740009","username":"teachkidss","full_name":"..."}') ]; $filteredFeeds = AnalyzeInstagramPageController::removeDuplicateFeeds($userAccountSource[0]->id, $feeds, 'like'); public function removeDuplicateFeeds($id, $feeds, $todo) { $feeds = collect($feeds); // If $feeds is not already a collection $actionsHistory = ActionsHistory::whereAccountId($id) ->whereActionName($todo) ->whereIn('action_name', $feeds->pluck('pk')) // retrieves only duplicate records ->select('action_name') // reducing the select improves performance ->get(); // Should return a eloquent collection instance if (!empty($actionsHistory)) { return $feeds->whereNotIn('pk', $actionsHistory->pluck('action_name')); } return $feeds; }

~/.config/fontconfig/fonts.conf

如您所见,我尝试使用<?xml version='1.0'?> <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> <fontconfig> <!-- Set preferred serif, sans serif, and monospace fonts. --> <alias> <family>serif</family> <prefer><family>DejaVu Serif</family></prefer> </alias> <alias> <family>sans-serif</family> <prefer><family>DejaVu Sans</family></prefer> </alias> <alias> <family>sans</family> <prefer><family>DejaVu Sans</family></prefer> </alias> <alias> <family>monospace</family> <prefer> <family>Iosevka Term</family> <edit name="pixelsize" mode="assign" binding="strong"> <double>18</double> </edit> </prefer> </alias> 子句为pixelsize设置Iosevka Term属性,但没有成功。有人可以暗示如何正确完成它吗?

我发现将某些东西配置为精神痛苦的XML方式:(

0 个答案:

没有答案