Author Topic: Export font to png returns black box  (Read 534 times)

July 01, 2019, 10:42:59 PM
Read 534 times

Hoot

  • Sr. Newbie

  • Offline
  • **

  • 3
I just set up a new computer and installed the latest version of Inkscape and exporting simple lettering to a png file upon viewing it in my network folder, or in Gimp for example, where the font should be it's a solid black box, the size of the background. Alpha to selection shows no sign of the font outline, so yeah, it's just a solid black box. I've done a quick Google search on this and see it's not uncommon but none of the articles appeared to have a solution. I'm hoping someone here knows. Thanks for your help!

I've attached a screenshot showing a successful export and the two black boxes are what I'm talking about.
  • 0.92.4
  • Windows 10

July 02, 2019, 01:42:35 PM
Reply #1

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
Guessing, as the info you gave isn't enough to determine what the problem is (share a file if you need further help):

https://inkscape.org/en/learn/faq/#flowed-text-doesnt-show-exported-file

July 02, 2019, 08:50:39 PM
Reply #2

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Welcome to the forum!

Yes, there are a few possibilities.  If Moini's suggestion doesn't help, if you could please share the SVG file, we could find out exactly what the problem is, without guessing.
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

July 02, 2019, 11:50:38 PM
Reply #3

Lazur

  • IC Mentor

  • Offline
  • ******
  • Inkscape Filters Wizard

  • 1,154
  • Gender
    Male

    Male
Hi.

In addition to Moini's response.

Texts turning to solid black colours is the sign most probably of a flowed text. It didn't make it into the official svg specs and most probably you were trying to open the svg with gimp -gimp doesn't give the feature off-spec to render those texts.

Either unflow the texts first or better yet convert text to path -so you can ensure others opening your svg without the font won't see a fallback font provided by their system but your original intended appearance.

In the future avoid flowed texts if necessary.

July 03, 2019, 09:41:12 AM
Reply #4

Hoot

  • Sr. Newbie

  • Offline
  • **

  • 3
Welcome to the forum!

Yes, there are a few possibilities.  If Moini's suggestion doesn't help, if you could please share the SVG file, we could find out exactly what the problem is, without guessing.

Thank you for the welcome! Sorry about the insufficient info. When I get home I will share SVG file. This is the first time I've heard of flowed text so if what I'm exporting is flowed text, I wasn't aware of it. Since my post I unistalled/reinstalled Inkscape and that fixed the problem but I've had the same problem in the past and usually restarting my computer would fix the issue but this time it didn't until after the reinstall. Am I understanding this correctly about flowed text, that exporting to png works sometimes or would it never work? If it would never work, then it isn't a flowed text issue.
  • 0.92.4
  • Windows 10

July 03, 2019, 03:22:43 PM
Reply #5

flamingolady

  • IC Mentor

  • Offline
  • ******
  • Flamingo Lady

  • 154
  • Gender
    Female

    Female
Are your items grouped when you export?  Just as a test, you could try this - select everything on your page, group, then export - ensure the 'page' tab is selected from the export menu.  I used to have some issues with the black thing, but found that selecting everything on the page and grouping it resolved it most of the time. 

July 03, 2019, 05:31:51 PM
Reply #6

Hoot

  • Sr. Newbie

  • Offline
  • **

  • 3
Are your items grouped when you export?  Just as a test, you could try this - select everything on your page, group, then export - ensure the 'page' tab is selected from the export menu.  I used to have some issues with the black thing, but found that selecting everything on the page and grouping it resolved it most of the time.

No, I was exporting one at a time, but I could try grouping them beforehand. Attached is the SVG file. The font was downloaded, not sure if that has any bearing.
  • 0.92.4
  • Windows 10

July 04, 2019, 11:28:20 AM
Reply #7

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
Exports fine for me. Can you attach a screenshot of your export dialog settings and also check the Inkscape version in Help -> About, please?

July 04, 2019, 07:28:52 PM
Reply #8

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
I just realized your screenshot is of a file manager.  Whatever Windows 10 now calls, what used to be Windows Explorer.   I can't explain why, but file managers in general often don't have good support for displaying images.  Especially when the image has a transparent background, they sometimes show an image as solid black.

Have you tried opening that image, like in an image viewer  or another program?  I suspect the problem is just in the file manager.

Also, I'm not sure if you realize you're file is opening at 11% zoom for me.  The small "wolfpck" text is really over 900 px long!
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

July 05, 2019, 09:49:59 PM
Reply #9

flamingolady

  • IC Mentor

  • Offline
  • ******
  • Flamingo Lady

  • 154
  • Gender
    Female

    Female
I'm also able to export it properly. I used 92 dpi - what are you using? Def give us a copy of the png where the font has a black background. 
Your file is huge (approx around 31 x 31 inches) - is that right? As Brynn said, the zoom is low.  It took me a while to figure out how to export (esp for stock sites). 
Also your objects are outside of the bounding box, so depending on which tab you choose, it may be ignoring the font totally.   ps, if you need a good quality export, instead of making the file big, you make the file the same size as what you want your end output to be, then up the export dpi, I usually do around 300, and the png looks as good as the svg. 
Not sure any of this is your issue though.  A screen print of your export options and also the output png would be helpful.