purplebamboo / psd2html

a ruby gem to change psd to html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

能否文本的约定 颜色 字体?

albertyou2 opened this issue · comments

@purplebamboo
很棒库,可以用!
但能否约定文本的 颜色 和 字体?我发现目前 生成的html 比实际的 psd就是在位置,颜色,字体上有差距.谢谢

原图
image

渲染后de的结果
image

怎么安装成功的 我的报错了
d:\360se\ruby\rubygems-2.7.7>gem install psd2html
Fetching: hashie-3.6.0.gem (100%)
Successfully installed hashie-3.6.0
Fetching: psd-enginedata-1.1.1.gem (100%)
Successfully installed psd-enginedata-1.1.1
Fetching: chunky_png-1.3.10.gem (100%)
Successfully installed chunky_png-1.3.10
Fetching: nokogiri-1.5.11.gem (100%)
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
ERROR: Error installing psd2html:
ERROR: Failed to build gem native extension.

current directory: D:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/nokogiri-1.5.11/ext/nokogiri

D:/Ruby25-x64/bin/ruby.exe -r ./siteconf20180910-22676-8w5mel.rb extconf.rb
ϵͳ�Ҳ���ָ����·����
checking for libxml/parser.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.