← 返回命令列表

Linux command

pbmtext 命令

文本

涉及管道、覆盖或删除,执行前请先确认路径和参数。

常用示例

Create text image

pbmtext "[Hello World]" > [output.pbm]

Create with specific font

pbmtext -font [fixed] "[Hello]" > [output.pbm]

Create with built-in font

pbmtext -builtin [fixed] "[Hello]" > [output.pbm]

说明

pbmtext renders text as a PBM bitmap image. Part of Netpbm toolkit for creating text graphics. Supports BDF fonts and built-in fonts.

参数

-font _file_
BDF font file.
-builtin _name_
Built-in font (fixed, bdf).
-space _pixels_
Space between characters.
-lspace _pixels_
Line spacing.
-nomargins
No margins around text.

FAQ

What is the pbmtext command used for?

pbmtext renders text as a PBM bitmap image. Part of Netpbm toolkit for creating text graphics. Supports BDF fonts and built-in fonts.

How do I run a basic pbmtext example?

Run `pbmtext "[Hello World]" > [output.pbm]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -font _file_ do in pbmtext?

BDF font file.