cubex2 / betterfonts Goto Github PK
View Code? Open in Web Editor NEWAdds TrueType/OpenType font support for Minecraft.
License: GNU Lesser General Public License v2.1
Adds TrueType/OpenType font support for Minecraft.
License: GNU Lesser General Public License v2.1
It's a nice to have the ability to translate the mod.
from the actually additions mod. and also using theoneprobe. using game 1.11.2, forge 2228, latest better fonts
crash-2017-02-12_14.10.55-client.txt
here is the crash report.
https://imgur.com/a/ktweN
This is what happened in my Minecraft, lines with special characters (I guess so) will change to Serif fonts.
TTFR-1.2.4-1.8.9.jar
Tested with LiteLoader + Forge
MacType Installed, Windows 7
This is normal on Windows 10.
tested with both default san serif and also Kristen ITC
I ran the just enough resources /profile 100 all command with only JEI and JER, it completed and output to files successfully. I then installed betterfonts and ran the command again, and the server hung, I had to kill the process.
Either JER tries outputting in truetype or something weird (why would it use the minecraft font and not the system default?) or when the /profile command tries to complete betterfonts attempts to reload JEI for some reason and hangs the server.
Anyway I would appreciate if you could look into this a bit more? It's able to be worked around by simply disabling better fonts, running the command, than re-enabling. No big deal. :D
#workaround #minor
It is possible this isn't your code and it's the Just Enough Resources code. I haven't looked into anything further than the test described here. I don't mind cross posting this to JER if you deem it necessary.
Thanks!
update I have to say I looked through your java source and didn't see anything I understood to be conflicting. I'll go ahead and report this over on JER's site just in-case someone more familiar with the java.lang over here also knows what might be happening. I went ahead and opened an issue at way2muchnoise/JustEnoughResources#114 so that project could look into it.
full log follows
https://paste.ee/p/XWxkm
[01:00:19] [Thread-22/INFO] [FML]: Loading dimension -1 (hrk) (net.minecraft.server.integrated.IntegratedServer@15867f66)
[01:00:20] [Client thread/INFO]: [CHAT] [Nether] Started profiling
[01:00:21] [Thread-22/INFO] [FML]: Loading dimension 1 (hrk) (net.minecraft.server.integrated.IntegratedServer@15867f66)
[01:00:22] [Client thread/INFO]: [CHAT] [The End] Started profiling
[01:00:22] [Thread-22/INFO] [FML]: Loading dimension 0 (hrk) (net.minecraft.server.integrated.IntegratedServer@15867f66)
[01:00:24] [Client thread/INFO]: [CHAT] [Overworld] Started profiling
[01:00:26] [Thread-22/ERROR] [jei]: A mod tried to reload JEI, this is no longer supported. See the javadocs for more information
java.lang.RuntimeException
at mezz.jei.runtime.JeiHelpers.reload(JeiHelpers.java:52) [JeiHelpers.class:?]
at jeresources.profiling.Profiler.run(Profiler.java:47) [Profiler.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_131]
[01:00:34] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 4430ms behind, skipping 88 tick(s)
Process was killed by user.
TTFR-1.10.2-1.5.2 crashes when you look at an item laser relay from Actually Additions 1.10.2-r93
java.lang.StackOverflowError: Unexpected error
at java.util.WeakHashMap.getTable(Unknown Source)
at java.util.WeakHashMap.get(Unknown Source)
at cubex2.ttfr.StringCache.cacheString(StringCache.java:730)
at cubex2.ttfr.StringCache.sizeString(StringCache.java:610)
at cubex2.ttfr.StringCache.sizeStringToWidth(StringCache.java:656)
at net.minecraft.client.gui.FontRenderer.func_78259_e(FontRenderer.java)
at net.minecraft.client.gui.FontRenderer.func_78280_d(FontRenderer.java:939)
at net.minecraft.client.gui.FontRenderer.func_78280_d(FontRenderer.java:951)... (this repeats)
I often play at fullscreen so text looks jagged. Can we have an option to set the resolution of glyphs?
Cubex2 can you add support to extract font to a ascii.png and other languages
I like this mod! Thanks for working on it.
Any chance you can do a version that packs in a TTF font with a resource folder (see "Custom Resources" mod, so modpack makers can use to push to users?
It would have to be up to modpack makers to clear rights, of course.
the picture above shows that the text is having overlay issues most notably the flint is overlapping the item count in the grid, is there any way to fix this. I have posted a similar issue on the Refined Storage github as well.
Fyi this happens accross multiple font types, I have not found one that doesn't have this issue.
When we used Antialiased fonts - scoreboard alpha channel level is to high and blurred and any text on it are unreadeable.
Hello.
There is a problem with large messages.
Original message:
[13:31:30 INFO]: аааааааааааааааааааааааааааааааааааааааааааааааааааааааааааааааааааааааааааааааааааааааааааааааааааа
And it looks like this - http://dl.dropbox.com/u/943974/Screenshots/1p4wpaqmeqed.png
no mods only forge and BetterFonts
Can you fix it please?
Source Han Sans is a sans-serif gothic typeface created by Adobe and Google, and it can't be render via this mod . It will render nothing .
Download font for testing :
https://github.com/adobe-fonts/source-han-sans
-- System Details --
Details:
Minecraft Version: 1.9
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_77, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 699872688 bytes (667 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML:
Loaded coremods (and transformers):
BetterFontsCore (TTFR-1.4.0-1.9.4.jar)
cubex2.ttfr.BFClassTransformer
GL info: ' Vendor: 'Intel' Version: '4.3.0 - Build 20.19.15.4444' Renderer: 'Intel(R) HD Graphics 4600'
BetterFonts.cfg
# Configuration file
general {
# [default: false]
B:antiAlias=false
# Setting this to "false" will disable drop shadows completely [default: true]
B:dropShadow=true
# [range: 1 ~ 100, default: 18]
I:fonSize=18
# Valid font names: [ACaslonPro-Bold, ACaslonPro-BoldItalic, ACaslonPro-Italic, ACaslonPro-Regular, ACaslonPro-Semibold, ACaslonPro-SemiboldItalic, AGaramondPro-Bold, AGaramondPro-BoldItalic, AGaramondPro-Italic, AGaramondPro-Regular, Academy Engraved LET Plain:1.0, Adobe Naskh Medium, AdobeArabic-Bold, AdobeArabic-BoldItalic, AdobeArabic-Italic, AdobeArabic-Regular, AdobeDevanagari-Bold, AdobeDevanagari-BoldItalic, AdobeDevanagari-Italic, AdobeDevanagari-Regular, AdobeFanHeitiStd-Bold, AdobeFangsongStd-Regular, AdobeGothicStd-Bold, AdobeHebrew-Bold, AdobeHebrew-BoldItalic, AdobeHebrew-Italic, AdobeHebrew-Regular, AdobeHeitiStd-Regular, AdobeKaitiStd-Regular, AdobeMingStd-Light, AdobeMyungjoStd-Medium, AdobeNaskh-Medium, AdobeSongStd-Light, Algerian, Arial, Arial Black, Arial Bold, Arial Bold Italic, Arial Italic, Arial Narrow, Arial Narrow Bold, Arial Narrow Bold Italic, Arial Narrow Italic, Baskerville Old Face, Bauhaus 93, Bell MT, Bell MT Bold, Bell MT Italic, Berlin Sans FB, Berlin Sans FB Bold, Berlin Sans FB Demi Bold, Bernard MT Condensed, BirchStd, Blackletter 686 BT, BlackoakStd, Bodoni MT Poster Compressed, Book Antiqua, Book Antiqua Bold, Book Antiqua Bold Italic, Book Antiqua Italic, Bookman Old Style, Bookman Old Style Bold, Bookman Old Style Bold Italic, Bookman Old Style Italic, Bookshelf Symbol 7, Britannic Bold, Broadway, Broadway BT, Brush Script MT Italic, BrushScriptStd, CYuenHK-SemiMedium, Calibri, Calibri Bold, Calibri Bold Italic, Calibri Italic, Calibri Light, Calibri Light Italic, Californian FB, Californian FB Bold, Californian FB Italic, Calligraphic 421 BT, Cambria, Cambria Bold, Cambria Bold Italic, Cambria Italic, Cambria Math, Candara, Candara Bold, Candara Bold Italic, Candara Italic, Cataneo BT, Centaur, Century, Century Gothic, Century Gothic Bold, Century Gothic Bold Italic, Century Gothic Italic, ChaparralPro-Bold, ChaparralPro-BoldIt, ChaparralPro-Italic, ChaparralPro-LightIt, ChaparralPro-Regular, CharlemagneStd-Bold, Chiller, CloudHeiPingGBK, Colonna MT, Comic Sans MS, Comic Sans MS Bold, Comic Sans MS Bold Italic, Comic Sans MS Italic, Consolas, Consolas Bold, Consolas Bold Italic, Consolas Italic, Constantia, Constantia Bold, Constantia Bold Italic, Constantia Italic, Cooper Black, CooperBlackStd, CooperBlackStd-Italic, Corbel, Corbel Bold, Corbel Bold Italic, Corbel Italic, Courier New, Courier New Bold, Courier New Bold Italic, Courier New Italic, Dialog.bold, Dialog.bolditalic, Dialog.italic, Dialog.plain, DialogInput.bold, DialogInput.bolditalic, DialogInput.italic, DialogInput.plain, Droid Sans Mono, Ebrima, Ebrima Bold, Footlight MT Light, Franklin Gothic Medium, Franklin Gothic Medium Italic, Freestyle Script, Gabriola, Gadugi, Gadugi Bold, Garamond, Garamond Bold, Garamond Italic, Georgia, Georgia Bold, Georgia Bold Italic, Georgia Italic, GiddyupStd, Hack Bold, Hack Regular, Harlow Solid Italic, Harrington, High Tower Text, High Tower Text Italic, Highlight LET Plain:1.0, HoboStd, Holiday Pi BT, Impact, Informal Roman, Javanese Text, John Handy LET Plain:1.0, Jokerman, Jokerman LET Plain:1.0, Juice ITC, KozGoPr6N-Bold, KozGoPr6N-ExtraLight, KozGoPr6N-Heavy, KozGoPr6N-Light, KozGoPr6N-Medium, KozGoPr6N-Regular, KozGoPro-Bold, KozGoPro-ExtraLight, KozGoPro-Heavy, KozGoPro-Light, KozGoPro-Medium, KozGoPro-Regular, KozMinPr6N-Bold, KozMinPr6N-ExtraLight, KozMinPr6N-Heavy, KozMinPr6N-Light, KozMinPr6N-Medium, KozMinPr6N-Regular, KozMinPro-Bold, KozMinPro-ExtraLight, KozMinPro-Heavy, KozMinPro-Light, KozMinPro-Medium, KozMinPro-Regular, Kristen ITC, Kunstler Script, La Bamba LET Plain:1.0, Leelawadee UI, Leelawadee UI Bold, Leelawadee UI Semilight, LetterGothicStd, LetterGothicStd-Bold, LetterGothicStd-BoldSlanted, LetterGothicStd-Slanted, LithosPro-Black, LithosPro-Regular, Lucida Bright, Lucida Bright Demibold, Lucida Bright Demibold Italic, Lucida Bright Italic, Lucida Bright Regular, Lucida Calligraphy Italic, Lucida Console, Lucida Fax Demibold, Lucida Fax Demibold Italic, Lucida Fax Italic, Lucida Fax Regular, Lucida Handwriting Italic, Lucida Sans Demibold, Lucida Sans Regular, Lucida Sans Typewriter Bold, Lucida Sans Typewriter Regular, Lucida Sans Unicode, MS Gothic, MS PGothic, MS Reference Sans Serif, MS Reference Specialty, MS UI Gothic, MT Extra, MV Boli, Magneto Bold, Malgun Gothic, Malgun Gothic Bold, Malgun Gothic Semilight, Marlett, Matura MT Script Capitals, Mekanik LET Plain:, MesquiteStd, Microsoft Himalaya, Microsoft JhengHei UI, Microsoft JhengHei UI Bold, Microsoft JhengHei UI Light, Microsoft New Tai Lue, Microsoft New Tai Lue Bold, Microsoft PhagsPa, Microsoft PhagsPa Bold, Microsoft Sans Serif, Microsoft Tai Le, Microsoft Tai Le Bold, Microsoft YaHei, Microsoft YaHei Bold, Microsoft YaHei Light, Microsoft YaHei UI, Microsoft YaHei UI Bold, Microsoft YaHei UI Light, Microsoft Yi Baiti, Milano LET, MingLiU, MingLiU-ExtB, MingLiU_HKSCS, MingLiU_HKSCS-ExtB, MinionPro-Bold, MinionPro-BoldCn, MinionPro-BoldCnIt, MinionPro-BoldIt, MinionPro-It, MinionPro-Medium, MinionPro-MediumIt, MinionPro-Regular, MinionPro-Semibold, MinionPro-SemiboldIt, Mister Earl BT, Mistral, Modern No. 20, Mongolian Baiti, Monospaced.bold, Monospaced.bolditalic, Monospaced.italic, Monospaced.plain, Monotype Corsiva, Myanmar Text, Myanmar Text Bold, Myriad Arabic, Myriad Arabic Bold, Myriad Arabic Bold Italic, Myriad Arabic Italic, Myriad Hebrew, Myriad Hebrew Bold, Myriad Hebrew Bold Italic, Myriad Hebrew Italic, MyriadArabic-Bold, MyriadArabic-BoldIt, MyriadArabic-It, MyriadArabic-Regular, MyriadHebrew-Bold, MyriadHebrew-BoldIt, MyriadHebrew-It, MyriadHebrew-Regular, MyriadPro-Bold, MyriadPro-BoldCond, MyriadPro-BoldCondIt, MyriadPro-BoldIt, MyriadPro-Cond, MyriadPro-CondIt, MyriadPro-It, MyriadPro-Regular, MyriadPro-Semibold, MyriadPro-SemiboldIt, NSimSun, Niagara Engraved, Niagara Solid, Nirmala UI, Nirmala UI Bold, Nirmala UI Semilight, NuevaStd-Bold, NuevaStd-BoldCond, NuevaStd-BoldCondItalic, NuevaStd-Cond, NuevaStd-CondItalic, NuevaStd-Italic, Nunito-Bold, Nunito-Light, Nunito-Regular, OCRAStd, Odessa LET Plain:1.0, Old Dreadful No.7 BT, Old English Text MT, One Stroke Script LET Plain:, Onyx, Orange LET Plain:1.0, OratorStd, OratorStd-Slanted, PMingLiU, PMingLiU-ExtB, Palatino Linotype, Palatino Linotype Bold, Palatino Linotype Bold Italic, Palatino Linotype Italic, Parchment, Park Avenue BT, Playbill, Poor Richard, PoplarStd, PrestigeEliteStd-Bd, Pump Demi Bold LET Plain:1.0, Quixley LET Plain:1.0, Rage Italic LET Plain:1.0, Ravie, Roboto Bold, Roboto Light, Roboto Medium, Roboto Regular, RosewoodStd-Regular, Ruach LET Plain:1.0, SansSerif.bold, SansSerif.bolditalic, SansSerif.italic, SansSerif.plain, Scruff LET Plain:1.0, Segoe MDL2 Assets, Segoe Print, Segoe Print Bold, Segoe Script, Segoe Script Bold, Segoe UI, Segoe UI Black, Segoe UI Black Italic, Segoe UI Bold, Segoe UI Bold Italic, Segoe UI Emoji, Segoe UI Historic, Segoe UI Italic, Segoe UI Light, Segoe UI Light Italic, Segoe UI Semibold, Segoe UI Semibold Italic, Segoe UI Semilight, Segoe UI Semilight Italic, Segoe UI Symbol, Serif.bold, Serif.bolditalic, Serif.italic, Serif.plain, Showcard Gothic, SimSun, SimSun-ExtB, Sitka Banner, Sitka Banner Bold, Sitka Banner Bold Italic, Sitka Banner Italic, Sitka Display, Sitka Display Bold, Sitka Display Bold Italic, Sitka Display Italic, Sitka Heading, Sitka Heading Bold, Sitka Heading Bold Italic, Sitka Heading Italic, Sitka Small, Sitka Small Bold, Sitka Small Bold Italic, Sitka Small Italic, Sitka Subheading, Sitka Subheading Bold, Sitka Subheading Bold Italic, Sitka Subheading Italic, Sitka Text, Sitka Text Bold, Sitka Text Bold Italic, Sitka Text Italic, Smudger LET Plain:1.0, Snap ITC, Source Code Pro , Source Han Sans TWHK Bold Bold, Source Han Sans TWHK ExtraLight, Source Han Sans TWHK Heavy Bold, Source Han Sans TWHK Light, Source Han Sans TWHK Medium, Source Han Sans TWHK Normal, Source Han Sans TWHK Regular, SourceHanSansTWHK-Bold, SourceHanSansTWHK-ExtraLight, SourceHanSansTWHK-Heavy, SourceHanSansTWHK-Light, SourceHanSansTWHK-Medium, SourceHanSansTWHK-Normal, SourceHanSansTWHK-Regular, Square 721 BT, Staccato 222 BT, Stencil, StencilStd, Sylfaen, Symbol, Tahoma, Tahoma Bold, TeamViewer11, TektonPro-Bold, TektonPro-BoldCond, TektonPro-BoldExt, TektonPro-BoldObl, Tempus Sans ITC, Times New Roman, Times New Roman Bold, Times New Roman Bold Italic, Times New Roman Italic, Tiranti Solid LET Plain:1.0, TrajanPro-Bold, TrajanPro-Regular, Trebuchet MS, Trebuchet MS Bold, Trebuchet MS Bold Italic, Trebuchet MS Italic, Ubuntu, Ubuntu Bold, Ubuntu Bold Italic, Ubuntu Condensed, Ubuntu Italic, Ubuntu Light, Ubuntu Light Italic, Ubuntu Medium, Ubuntu Medium Italic, Ubuntu Mono, Ubuntu Mono Bold, Ubuntu Mono Bold Italic, Ubuntu Mono Italic, University Roman LET Plain:1.0, Verdana, Verdana Bold, Verdana Bold Italic, Verdana Italic, Victorian LET Plain:1.0, Viner Hand ITC, Vivaldi Italic, Vladimir Script, Webdings, Westwood LET Plain:1.0, Wide Latin, Wingdings, Wingdings 2, Wingdings 3, Yu Gothic Bold, Yu Gothic Light, Yu Gothic Medium, Yu Gothic Regular, Yu Gothic UI Bold, Yu Gothic UI Light, Yu Gothic UI Regular, Yu Gothic UI Semibold, Yu Gothic UI Semilight, 微軟正黑體, 微軟正黑體 Bold, 微軟正黑體 Light, 新細明體, 新細明體-ExtB, 標楷體, 細明體, 細明體-ExtB, 細明體_HKSCS, 細明體_HKSCS-ExtB] [default: Serif]
S:fontName=SourceHanSansTWHK-Normal
}
Console
...
[23:40:16] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[23:40:16] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[23:40:16] [main/INFO] [GradleStart]: Injecting location in coremod cubex2.ttfr.BetterFontsCore
...
[23:40:38] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Found status: OUTDATED Target: 12.16.1.1887
[23:40:44] [Sound Library Loader/INFO]: Starting up SoundSystem...
[23:40:44] [Client thread/INFO] [STDOUT]: [cubex2.ttfr.GlyphCache:setDefaultFont:215]: BetterFonts loading font "Source Han Sans TWHK Normal"
[23:40:44] [Thread-8/INFO]: Initializing LWJGL OpenAL
[23:40:44] [Thread-8/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
[23:40:44] [Thread-8/INFO]: OpenAL initialized.
...
Was interested to see what minecraft would look like with everything wingdingafied, but after the game started it wasn't affected. I looked in the log and found it applied Aharoni Bold instead.
[21:44:45] [Client thread/INFO]: [cubex2.ttfr.GlyphCache:setDefaultFont:205]: BetterFonts loading font "Wingdings"
[21:44:45] [Client thread/INFO]: [cubex2.ttfr.GlyphCache:lookupFont:268]: BetterFonts loading font "Aharoni Bold"
Is this just not supported due to all the goofiness it would cause?
I am using — or was using — TTFR-1.10.2-1.5.4, with great success, until a couple of days ago when I discovered a conflict with Thaumcraft alpha 16 and beta 0. Everything works fine, right up until you look at anything that is showing an essentia point count, even just glancing at a warded jar, and then all characters in everything throughout Minecraft turn into unreadable rectangular blobs. Once this happens it is irrevocable and can be cleared only by restarting the Minecraft client; then it's fine until you look at essentia again. Anything else, including reading the Thaumonomicon, is fine.
Azanor has looked at the problem and does not believe it is anything he is doing. He believes the fault is on TTFR's side. Can you perhaps investigate and see if you can find the cause of the problem? At 1920x1080, TTFR is almost indispensable in Minecraft. But Thaumcraft has always been one of my must-have mods...
Thanks.
So I got a weird report for ya. Was testing my modpack, trying to find a way to reduce memory/cpu usage (having weird luck with memory profilers too). I've heard good things about OpenJ9, and tried it briefly in the past, but never stuck with it for some reason. Decided to try it again. Everything seemed fine. 'till the modpack finished loading and the main menu had absolutely no text anywhere, minus the logo. The buttons were bare, the corner text telling MC and Forge version was gone.. it was really strange. I loaded up a test save by just remembering what buttons did what, and it's the same thing in-game. All text gone, even chat text.
At first I thought.. wow, everything dun borked. Then I remembered I had a mod changing the font. So I restarted without TrueType Font Replacement, and everything works fine now.
MC 1.12.2
forge-14.23.5.2847
Eclipse OpenJ9 VM, version 1.8.0_212 (newer versions of OpenJ9 seem to cause crashes with MC)
TTFR-1.12.1-1.9.1.jar
Lots of other mods.
Title says it all, simple fix.
I installed the mod, selected the font in the settings. And the font in the game has not changed at all.
I installed the mod and when i type help in the chat. The place you click to change to the second help page is off sync. It's either a little to the left or to the right. I can click it to change to the second help screen but i have to find it first. Hope this makes sense.
When I type a long sentence that is more than 100 characters on chat, the game crashes!
Even other people's long chat sentence also crashes minecraft.
It happens also when I type a long command on the command block.
I'm using antiAlias and dropShadow to true, and the font is Comic Sans MS, font size is 18.
It seems this mod has no effect on some of the tooltips rendering in Tinkers Construct items.
It seems tinkers is using some custom rendering. Some code related to text rendering can be found here, but I failed to solve the problem.
I'm seeing the following crash after adding this mod.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.