Jump to content
1631 posts in this topic

Recommended Posts

4 hours ago, blackosx said:

... Thanks to the note from @cecekpawon about the kerning pairs, the fonts issue has been resolved and I've now generated new font images which I've successfully tested in Qemu (though only at 1x Scale)...

 

 

Thank you, excellent work, now we have a set of fonts to choice.

@antuneddu did you try the suggestion here?

 

@BuXb Thanks. Moving forward for now, I think it’s just a case of finding the right font per user as I believe OpenCanopy’s aim is to be as close to Apple’s boot picker as possible. So as far as ever being able to use a larger font will be down to future dev changes if they wish to allow that.

 

@miliuco Thanks. Last August when I first looked in to the fonts, I created a bash script to call the appropriate programs (for example, dpfontbaker) to generate the font files.. this is using MacOS and not the recommended method with Windows. But it seems to work pretty well.


If it’s of use to others I may post this script here so anyone can generate their own font images?

Edited by blackosx
  • Thanks 1
15 minutes ago, blackosx said:

@antuneddu did you try the suggestion here?

 

@BuXb Thanks. Moving forward for now, I think it’s just a case of finding the right font per user as I believe OpenCanopy’s aim is to be as close to Apple’s boot picker as possible. So as far as ever being able to use a larger font will be down to future dev changes if they wish to allow that.

 

@miliuco Thanks. Last August when I first looked in to the fonts, I created a bash script to call the appropriate programs (for example, dpfontbaker) to generate the font files.. this is using MacOS and not the recommended method with Windows. But it seems to work pretty well.


If it’s of use to others I may post this script here so anyone can generate their own font images?

As usual you are the n1 Thank you. This then to copy the icon ... you never stop learning :yes:

28194440.png

3 minutes ago, antuneddu said:

As usual you are the n1 Thank you. This then to copy the icon ... you never stop learning :yes:

28194440.png

By the way, as you can see, I put the new characters. Aller_Bd .... works  great

  • Like 2
  • Thanks 1

@antuneddu Good to hear the Ubuntu icon now works and you’re enjoying the fonts.

 

@BuXb Sure. I’ll get it ready to post this week (though it may be quicker.. lol).

 

I can’t view that background file easily on my mobile so I’ll look at it when next on my machine.

  • Like 1
16 hours ago, blackosx said:

 

Thank you! It was indeed the kerning pairs causing the problem :)

 

Thanks to the note from @cecekpawon about the kerning pairs, the fonts issue has been resolved and I've now generated new font images which I've successfully tested in Qemu (though only at 1x Scale).

 

 

 

Great Job. @blackosx Do you plan to put yours fonts on the GitHub OpencanopyIcons repo !

Here's v0.2 of the font script ocFontFileGenerator

 

Credits:

dpfb from https://github.com/usr-sse2/dpfontbaker

FNTTools from https://github.com/AuroraBertaOldham/FNTTools/releases/tag/v1.0

 

Usage:

1 - Place Truetype (.ttf) font files in the 'TrueTypeFontToProcess' directory

2 - Double click the ocFontFileGenerator.command

3 - Resulting font files will be in the 'ProcessedFonts' directory

 

It's archived as .lzma which you can uncompress using something like cvad's LZMAnoGUI64 for example.

 

ocFontFileGenerator_v0.2.tar.lzma

 

Note: From memory, I believe not all fonts will successfully convert due to their lineheight at a given font size.

  • Like 4
1 hour ago, Matgen84 said:

Great Job. @blackosx Do you plan to put yours fonts on the GitHub OpencanopyIcons repo !

No plans to host any font files, but hopefully users can now create their own files with the above ocFontFileGenerator script.

  • Like 2

I am a bit confused about creating an icon for Shutdown. What do I name it and how do I get it to activate. Currently it is named "ResetSystem.efi.icns" but it shows the "tool" icon. I named it "Shutdown.icns" but that didn’t work either.

11 minutes ago, pkdesign said:

I am a bit confused about creating an icon for Shutdown. What do I name it and how do I get it to activate. Currently it is named "ResetSystem.efi.icns" but it shows the "tool" icon. I named it "Shutdown.icns" but that didn’t work either.

the shutdown icon with the name tool and the resetnvram icon with the name resetnvram works for me 

2 minutes ago, antuneddu said:

the shutdown icon with the name tool and the resetnvram icon with the name resetnvram works for me 

151843186_Schermata2021-03-01alle23_35_48.thumb.png.7e38f79ccbaa9d827446fd4a14653ca5.png

17 hours ago, antuneddu said:

the shutdown icon with the name tool and the resetnvram icon with the name resetnvram works for me 

151843186_Schermata2021-03-01alle23_35_48.thumb.png.7e38f79ccbaa9d827446fd4a14653ca5.png

Yes, naming the newly creted ICNS "Tool.icns" will make it appear. Butthen all "tools" wil have a power button icon.

 

I guess there is no separate naming for a "tool" icon and a "shutdown" icon? It's one or the other?

44 minutes ago, pkdesign said:

Yes, naming the newly creted ICNS "Tool.icns" will make it appear. Butthen all "tools" wil have a power button icon.

 

I guess there is no separate naming for a "tool" icon and a "shutdown" icon? It's one or the other?

??? Tool.icns > Power button     Resetnvram.icns >  Resetnvram button   Shell.icns  > Shell button 

3 hours ago, pkdesign said:

I guess there is no separate naming for a "tool" icon and a "shutdown" icon? It's one or the other?

 

Hey @pkdesign

 

I tried to give an explanation how to do this here:

 

See if these examples help...

 

Tools entries of config.plist

                <dict>
                    <key>Arguments</key>
                    <string>WarmReset</string>
                    <key>Auxiliary</key>
                    <true/>
                    <key>Comment</key>
                    <string>Perform warm reset</string>
                    <key>Enabled</key>
                    <true/>
                    <key>Name</key>
                    <string>WarmReset</string>
                    <key>Path</key>
                    <string>ResetSystem.efi</string>
                    <key>RealPath</key>
                    <false/>
                    <key>TextMode</key>
                    <false/>
                </dict>
                <dict>
                    <key>Arguments</key>
                    <string>ColdReset</string>
                    <key>Auxiliary</key>
                    <true/>
                    <key>Comment</key>
                    <string>Perform cold reset</string>
                    <key>Enabled</key>
                    <true/>
                    <key>Name</key>
                    <string>ColdReset</string>
                    <key>Path</key>
                    <string>ResetCold.efi</string>
                    <key>RealPath</key>
                    <false/>
                    <key>TextMode</key>
                    <false/>
                </dict>
                <dict>
                    <key>Arguments</key>
                    <string>Shutdown</string>
                    <key>Auxiliary</key>
                    <true/>
                    <key>Comment</key>
                    <string>Perform shutdown</string>
                    <key>Enabled</key>
                    <true/>
                    <key>Name</key>
                    <string>Shutdown</string>
                    <key>Path</key>
                    <string>ResetShutdown.efi</string>
                    <key>RealPath</key>
                    <false/>
                    <key>TextMode</key>
                    <false/>
                </dict>

/EFI/OC/Tools/

 

Tools-Dir.jpg

 

Result

 

Open-Canopy-Result.jpg

 

 

  • Like 5

Thanks this helps a lot. First of all, I realized that I was using 0 as a PickerAttributes, doh! When I select 1, it now shows newly created Shutdown Icon. BUT, I did not realize that it had to be placed in the Tools folder next to *efi and not in the Resources/Images folder.

 

So many switches!! :shock:

2 hours ago, blackosx said:

Hopefully you’ve got it working. :)

 

Ps. We did discuss the Tools dir last year, but I guess that was a while ago now ;)

 

Well, I also did not know that specific tool icon can be placed next to the tool :whistle:

Thanks for the info

  • Like 1
×
×
  • Create New...