如何用PIL / ImageDraw绘制斜体文本?

时间:2018-01-12 04:32:34

标签: python windows python-imaging-library italic

我想用PIL / ImageDraw绘制斜体文本。 有人说使用斜体字体,但我的字体只是一个ttf文件。没有斜体字体文件。

def update
    @user = current_user
    respond_to do |format|
      if @user.update(user_params)
        flash[:notice] = 'User was successfully updated.'
        format.html {redirect_to user_path(@user) }
        format.json { render :show, status: :ok, location: @user }
      else
        render action: :edit
      end
    end
end

根据PIL文档,使用libraqm还有一些其他选项,但不支持MS Windows。

有人帮助我吗?

0 个答案:

没有答案
相关问题