Skip to main content
Module

x/ddc_vim/deps.ts>fn.getfontname

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
function fn.getfontname
import { fn } from "https://deno.land/x/ddc_vim@v2.3.0/deps.ts";
const { getfontname } = fn;

Without an argument returns the name of the normal font being used. Like what is used for the Normal highlight group |hl-Normal|. With an argument a check is done whether {name} is a valid font name. If not then an empty string is returned. Otherwise the actual font name is returned, or {name} if the GUI does not support obtaining the real name. Only works when the GUI is running, thus not in your vimrc or gvimrc file. Use the |GUIEnter| autocommand to use this function just after the GUI has started. Note that the GTK GUI accepts any font name, thus checking for a valid name does not work.

Parameters

denops: Denops
optional
name: unknown

Returns

Promise<unknown>