Bug Issue: Default fonts - unicode characters


Pages: 1

yoplalala

  • Subscriber - Stencyl Studio
  • *
October 04, 2015, 02:51:14 pm
http://snag.gy/ILCSM.jpg

So here is a the stencyl made png, of the same character set in two different fonts
( one that was a default one and the other one that i downloaded) as you can the default font has  not all russian characters even though they appear in the font editor

you can see it caused some problem here http://community.stencyl.com/index.php/topic,44297.msg247758.html#msg247758
« Last Edit: October 04, 2015, 02:51:47 pm by yoplalala »


Issue updated by yoplalala - October 04, 2015, 02:51:47 pm
  • Category changed from (none) to Font Editor


Issue updated by captaincomic - October 13, 2015, 06:35:13 pm
  • Tags added: fonts


captaincomic

  • Master Stencyler
  • *
November 04, 2015, 07:47:18 am
The default font included in every game does only contain Latin1 characters, so that would not be a bug. Or do I misunderstand? I looked at the test game, and with custom characters set, they print correctly.
  • Status changed from New to Need Info


yoplalala

  • Subscriber - Stencyl Studio
  • *
November 04, 2015, 08:12:27 am
Maybe but the strange thing is that they do appear on font editor which is confusing http://snag.gy/pkYj0.jpg


danielle53

  • Subscriber - Stencyl Indie
  • *
November 07, 2015, 06:40:42 pm
No Unicode !?!?
Can't be true ..
Or do I misunderstand?
but
 
Code: [Select]
Unexpected problem on thread AWT-EventQueue-0: java.lang.IllegalArgumentException: Width (4) and height (-2147483647) cannot be <= 0
java.lang.RuntimeException: java.lang.IllegalArgumentException: Width (4) and height (-2147483647) cannot be <= 0
at stencyl.sw.app.tasks.StencylWorker.done(StencylWorker.java:74)
at stencyl.sw.app.tasks.SaveGameTask.done(SaveGameTask.java:56)
at javax.swing.SwingWorker$5.run(SwingWorker.java:737)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(SwingWorker.java:832)
at sun.swing.AccumulativeRunnable.run(AccumulativeRunnable.java:112)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(SwingWorker.java:842)
at javax.swing.Timer.fireActionPerformed(Timer.java:313)
at javax.swing.Timer$DoPostEvent.run(Timer.java:245)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.IllegalArgumentException: Width (4) and height (-2147483647) cannot be <= 0
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1016)
at java.awt.image.BufferedImage.<init>(BufferedImage.java:333)
at stencyl.thirdparty.pulpcore.assettools.ConvertFontTask.renderFont(ConvertFontTask.java:606)
at stencyl.thirdparty.pulpcore.assettools.ConvertFontTask.createFont(ConvertFontTask.java:423)
at stencyl.thirdparty.pulpcore.assettools.ConvertFontTask.create(ConvertFontTask.java:171)
at stencyl.thirdparty.pulpcore.assettools.ConvertFontTask.writeFont(ConvertFontTask.java:105)
at stencyl.sw.io.write.resource.FontWriter.write(FontWriter.java:151)
at stencyl.core.lib.io.IOHelper.write(IOHelper.java:146)
at stencyl.sw.io.write.ResourcePackWriter.writeResourcesFile(ResourcePackWriter.java:113)
at stencyl.sw.io.write.ResourcePackWriter.write(ResourcePackWriter.java:46)
at stencyl.sw.io.write.MasterWriter.saveGame(MasterWriter.java:94)
at stencyl.sw.app.tasks.SaveGameTask.doInBackground(SaveGameTask.java:35)
at stencyl.sw.app.tasks.SaveGameTask.doInBackground(SaveGameTask.java:13)
at javax.swing.SwingWorker$1.call(SwingWorker.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at javax.swing.SwingWorker.run(SwingWorker.java:334)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)




« Last Edit: November 07, 2015, 06:42:00 pm by danielle53 »


yoplalala

  • Subscriber - Stencyl Studio
  • *
November 08, 2015, 05:27:54 am
This message appears when ? With what character ?


danielle53

  • Subscriber - Stencyl Indie
  • *
November 08, 2015, 08:14:06 am
Thanks Yoplala .. to answer to me so quickly ..

Just choose a "exotic" font KacstBook (here an Arabic one ..) in the Font Editor  (/usr/share/fonts/truetype/kacst/KacstBook.ttf)
and try to save ..
Is "exotic" globally correct ? (I don't think so, and that's upsetting me ..)
For some other fonts (droid sans japanese) .. no "Oups!",  but it hangs
Saving ...........
even if the game is actually closed.
To remove this Saving ... reopen the game !


« Last Edit: November 08, 2015, 08:15:01 am by danielle53 »


danielle53

  • Subscriber - Stencyl Indie
  • *
November 08, 2015, 08:31:48 am
Choose  /usr/share/fonts/truetype/openoffice/opens___.ttf  the error is higher at the preview level ... may be the log is clearer

Code: [Select]
Level:     ERROR
When:      2015-11-08 17:22:02:484
From:      stencyl.thirdparty.pulpcore.assettools.ConvertFontTask

Error creating preview for font /home/dan/Projets2/stencylworks8734/stencylworks/games/nearlyblank/resources/2.fnt

Throwable: java.io.IOException: No legal characters using font OpenSymbol
at stencyl.thirdparty.pulpcore.assettools.ConvertFontTask.createFontPreviewImage(ConvertFontTask.java:490)
at stencyl.thirdparty.pulpcore.assettools.ConvertFontTask.createPreview(ConvertFontTask.java:183)
at stencyl.thirdparty.pulpcore.assettools.ConvertFontTask.getFontPreviewImage(ConvertFontTask.java:120)
at stencyl.sw.app.lists.font.FontItemRenderer.fetchIcon(FontItemRenderer.java:49)
at stencyl.sw.app.lists.font.FontItemRenderer.fetchIcon(FontItemRenderer.java:18)
at stencyl.sw.app.lists.AbstractItemRenderer.getListCellRendererComponent(AbstractItemRenderer.java:81)
at javax.swing.plaf.basic.BasicListUI.paintCell(BasicListUI.java:209)
at javax.swing.plaf.basic.BasicListUI.paintImpl(BasicListUI.java:317)
at javax.swing.plaf.basic.BasicListUI.paint(BasicListUI.java:240)
at javax.swing.plaf.ComponentUI.update(ComponentUI.java:161)
at javax.swing.JComponent.paintComponent(JComponent.java:780)
at stencyl.sw.app.lists.AbstractList.paintComponent(AbstractList.java:615)
at javax.swing.JComponent.paint(JComponent.java:1056)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JComponent.paint(JComponent.java:1065)
at javax.swing.JViewport.paint(JViewport.java:728)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JComponent.paint(JComponent.java:1065)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JComponent.paint(JComponent.java:1065)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JComponent.paint(JComponent.java:1065)
at javax.swing.JComponent.paintToOffscreen(JComponent.java:5210)
at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1579)
at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1502)
at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:306)
at javax.swing.RepaintManager.paint(RepaintManager.java:1272)
at javax.swing.JComponent._paintImmediately(JComponent.java:5158)
at javax.swing.JComponent.paintImmediately(JComponent.java:4969)
at javax.swing.RepaintManager$4.run(RepaintManager.java:831)
at javax.swing.RepaintManager$4.run(RepaintManager.java:814)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
at javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1732)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)


Issue updated by captaincomic - November 08, 2015, 05:15:19 pm
  • Issue Assigned from (none) to captaincomic
  • Status changed from Need Info to Assigned


captaincomic

  • Master Stencyler
  • *
November 08, 2015, 05:18:13 pm
@yoplalala, okay, I'll fix that.

@danielle53, I'll also look at that. It may be a problem with those fonts not having any characters in the selected range. For example if you select "Latin Letters and Numbers" and the font only has Arabic characters.

Btw. If your issue is different from the OP, please open a new bug report (in the future, no need to do it for this one.)


captaincomic

  • Master Stencyler
  • *
November 08, 2015, 07:46:07 pm
Both issues (among a few others) should be fixed now:
Quote
- (b8808) Fix: use the actual fonts for the default font previews (Newspaper, Sans Serif, and Typewriter)
 - (b8807) Fix: only show displayable chars in font preview
 - (b8806) Fix: error when selecting custom font without choosing one
 - (b8805) Fix: warn and fall back if font contains no displayable chars
 - (b8804) Fix: misleading preview image if font has no displayable chars
  • Status changed from Assigned to Resolved


danielle53

  • Subscriber - Stencyl Indie
  • *
November 09, 2015, 02:31:51 am
Thanks !
If it was not for the **150Mo or so**  to download, I would try straight away!
(nota : if there were another way, I would be very happy to know it)
« Last Edit: November 09, 2015, 02:32:41 am by danielle53 »


Pages: 1

Details

  • Reported
    October 04, 2015, 02:51:14 pm
  • Updated
    November 09, 2015, 02:31:51 am

  • View Status
    Public
  • Type
    Bug
  • Status
    Resolved
  • Priority
    Normal
  • Version
    3.3.2
  • Fixed in
    (none)
  • Assigned to
    captaincomic
  • Category
    Font Editor

Tags