Few-shot font generation (FFG), which aims to generate a new font with a few examples, is gaining increasing attention due to the significant reduction in labor cost. A typical FFG pipeline considers characters in a standard font library as content glyphs and transfers them to a new target font by extracting style information from the reference glyphs. Most existing solutions explicitly disentangle content and style of reference glyphs globally or component-wisely. However, the style of glyphs mainly lies in the local details, i.e. the styles of radicals, components, and strokes together depict the style of a glyph. Therefore, even a single character can contain different styles distributed over spatial locations. In this paper, we propose a new font generation approach by learning 1) the fine-grained local styles from references, and 2) the spatial correspondence between the content and reference glyphs. Therefore, each spatial location in the content glyph can be assigned with the right fine-grained style. To this end, we adopt cross-attention over the representation of the content glyphs as the queries and the representations of the reference glyphs as the keys and values. Instead of explicitly disentangling global or component-wise modeling, the cross-attention mechanism can attend to the right local styles in the reference glyphs and aggregate the reference styles into a fine-grained style representation for the given content glyphs. The experiments show that the proposed method outperforms the state-of-the-art methods in FFG. In particular, the user studies also demonstrate the style consistency of our approach significantly outperforms previous methods.
翻译:以生成新字体为目的的少发字体生成( FFG) 正在日益受到关注, 原因是劳动力成本大幅降低。 典型的 FFG 管道将标准字体库中的字符视为内容格字, 并通过从引用格字中提取样式信息将其传输到新目标字体。 大多数现有解决方案明确将内容和引用格字或组件的样式分解为全球或组件。 然而, 格字的风格主要在于本地细节, 即基体、 组件和 划线的样式, 共同描绘了格调的风格。 因此, 即使是一个单一字符也可以包含分布在空间位置上的不同样式。 在本文件中, 我们建议一个新的字体生成方法, 从引用格字中提取精细微的本地样式信息, 以及引用格格调的样式, 也可以在您之前的缩略图中, 向右键形的缩略图中, 显示您之前的缩略图中的缩略图, 将缩略图中的缩略图和缩略图中的缩图, 将您的缩图中的缩图中, 将您的缩图解的缩图中的缩图中的缩图解到右, 将显示到您的缩图中的缩图中的缩图中的缩图中的缩图中, 。 和缩图中的缩图中的缩图中的缩图中的缩图中的缩图中, 。