lib9 Posted July 26, 2008 Posted July 26, 2008 (edited) hello everbody,i would like to know how to create fonts addon using inf file and thanks for you help :welcome: . Edited July 26, 2008 by ferigno1 Quote
ricktendo Posted July 26, 2008 Posted July 26, 2008 1- OK its easy, before and after you install the new fonts take a snapshot and view the registry changes (convert to inf)2- To copy the fonts use the ini file to copy them to the Fonts folder[dosnet_files]d1,example1.ttfd1,example2.ttf[txtsetup_files]example1.ttf = 100,,,,,,,22,0,0,,1,22example2.ttf = 100,,,,,,,22,0,0,,1,223- Now in order to register the fonts you have to add their reg entries, you can do this by just making a INF with AddReg and add the fonts reg entries...[sysoc]Example=ocgen.dll,OcEntry,Example.inf,HIDE,7; this is the INF with the fonts reg entries4- The best way IMO is if you add the reg entries directly to HIVESFT.INF (View my Sidebar addon) along with the other original XP fonts, I use [EditFile] (the same method of adding silent switch installers to SVCPACK.INF) This way the fonts will get registered after TXTSETUP.SIF and you will be able to use them during XP Setup maybe in a custom winntbbu for exampleHere is how I edit HIVESFT.INF with the Vista fonts[EditFile]I386\HIVESFT.INF,AddReg,AddFonts ; adds the stuff under [AddFonts] in the Entries_*.iniI386\HIVESFT.INF,Strings,AddStrings ; adds the stuff under [AddStrings] in the Entries_*.ini; These will get added under the [AddReg] section of HIVESFT.INF[AddFonts]HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","%calibri%",,"calibri.ttf"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","%calibri_bold%",,"calibrib.ttf"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","%calibri_italic%",,"calibrii.ttf"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","%calibri_bold_italic%",,"calibriz.ttf"; These will get added under [Strings] section of HIVESFT.INF (you dont need to use Strings; but I kinda like it this way to make it exactly the same as XP fonts)[AddStrings]calibri ="Calibri (TrueType)"calibri_bold ="Calibri Bold (TrueType)"calibri_italic ="Calibri Italic (TrueType)"calibri_bold_italic ="Calibri Bold Italic (TrueType)"script_mt_bold ="Script MT Bold (TrueType)" Quote
lib9 Posted July 26, 2008 Author Posted July 26, 2008 (edited) for the first step i can use installwatchpro or another one like regshot .... and thanks a lot ricks this method its great its been a long time i have searching a way to register my fonts in order to use them in winntbbu Edited July 26, 2008 by ferigno1 Quote
ricktendo Posted July 27, 2008 Posted July 27, 2008 Post you finished addon and let me have a lood at it and see if you did it correct Quote
lib9 Posted July 27, 2008 Author Posted July 27, 2008 (edited) ok ricks thank you so much :welcome: i will post it as soon as possible i have a lot of fonts also vista one with cambria candara ect ... Edited July 27, 2008 by ferigno1 Quote
ricktendo Posted July 27, 2008 Posted July 27, 2008 Here is a clean example font addon that uses zero INF files http://www.mediafire.com/?1llm2jvyxtt Quote
*Reaper* Posted July 28, 2008 Posted July 28, 2008 (edited) Hey Rick.... got a question......Do fonts have to conform to the 8.3 naming rule....Reason I ask, is that i ran my entries.ini through FGCBA and it gave me a 8.3 warningon one of my fonts.....Using your clean example font addon and just modifing the info inside.Is it possible to rename them to get rid of this error....?Thanks go out to ferigno1 for posting this question.....And of course thanks to Rick for sharing all the info....Nice work BTW.... EDIT: NM Rick.... I found all you have to do is just rename the font to a 8.3 compliant name. DOH! :oops: Edited July 28, 2008 by *Reaper* Quote
ricktendo Posted July 29, 2008 Posted July 29, 2008 EDIT: NM Rick.... I found all you have to do is just rename the font to a 8.3 compliant name. DOH! :oops:Yes you can leave it with the 8.3 filename after copy it does not really matter to the font, just make sure its the same on your AddReg string OK?HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","%simhei%",,"simhei.ttf" <-HEREBut if you want to rename it from the 8.3 filename to the original filename after its copied, here is where you put the "Name After Copy" in your entries_*.inisimheix.ttf = 100,,,,,,,22,0,0,simhei.ttf,1,22EDIT: Also feel free to post you Entries_*.ini so I can have a look Quote
lib9 Posted July 29, 2008 Author Posted July 29, 2008 (edited) ricks take a look in my ini file if there any faults because when i integrate it in my os i doesn't find and addfonts( the reg entries) in hivesft.inf?;===============================================; Windows Fonts ;===============================================[general]builddate=2008/07/29description=Windows Fonts for XP.language=egtitle=Fontsversion=1.0website=[EditFile]I386\HIVESFT.INF,AddReg,AddFonts ; adds the stuff under [AddFonts] in the Entries_*.ini[AddFonts]HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","Calibri (TrueType)",0,"calibri.ttf"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","Calibri Bold (TrueType)",0,"calibrib.ttf"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","Calibri Italic (TrueType)",0,"calibrii.ttf"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","Calibri Bold Italic (TrueType)",0,"calibriz.ttf"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","Segoe Print (TrueType)",0,"segoepr.ttf"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","Segoe Print Bold (TrueType)",0,"segoeprb.ttf"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","Segoe Script (TrueType)",0,"segoesc.ttf"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","Segoe Script Bold (TrueType)",0,"segoescb.ttf"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","Segoe UI (TrueType)",0,"segoeui.ttf"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","Segoe UI Bold (TrueType)",0,"segoeuib.ttf"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","Segoe UI Italic (TrueType)",0,"segoeuii.ttf"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","Segoe UI Bold Italic (TrueType)",0,"segoeuiz.ttf"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","SimHei (TrueType)",0,"simhei.ttf"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","HandelGotD (TrueType)",0,"HandelGotD.ttf"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","Cambria Italic (TrueType)",0,"CAMBRIAI.TTF"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","Cambria Bold Italic (TrueType)",0,"CAMBRIAZ.TTF"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","Candara (TrueType)",0,"CANDARA.TTF"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","Candara Bold (TrueType)",0,"CANDARAB.TTF"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","Candara Italic (TrueType)",0,"CANDARAI.TTF"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","Candara Bold Italic (TrueType)",0,"CANDARAZ.TTF"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","Consolas (TrueType)",0,"CONSOLA.TTF"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","Consolas Bold (TrueType)",0,"CONSOLAB.TTF"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","Consolas Italic (TrueType)",0,"CONSOLAI.TTF"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","Consolas Bold Italic (TrueType)",0,"CONSOLAZ.TTF"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","Constantia (TrueType)",0,"CONSTAN.TTF"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","Constantia Bold (TrueType)",0,"CONSTANB.TTF"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","Constantia Italic (TrueType)",0,"CONSTANI.TTF"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","Constantia Bold Italic (TrueType)",0,"CONSTANZ.TTF"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","Corbel (TrueType)",0,"CORBEL.TTF"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","Corbel Bold (TrueType)",0,"CORBELB.TTF"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","Corbel Italic (TrueType)",0,"CORBELI.TTF"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","Corbel Bold Italic (TrueType)",0,"CORBELZ.TTF"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","Cambria & Cambria Math (TrueType)",0,"CAMBRIA.TTC"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts","Cambria Bold (TrueType)",0,"CAMBRIAB.TTF"[dosnet_files]d1,calibri.ttfd1,calibrib.ttfd1,calibrii.ttfd1,calibriz.ttfd1,segoepr.ttfd1,segoeprb.ttfd1,segoesc.ttfd1,simheia.ttfd1,segoeuiz.ttfd1,segoeuii.ttfd1,segoeuib.ttfd1,segoeui.ttfd1,segoescb.ttfd1,CAMBRIA.TTCd1,CAMBRIAB.TTFd1,CAMBRIAI.TTFd1,CAMBRIAZ.TTFd1,CANDARA.TTFd1,CANDARAB.TTFd1,CANDARAI.TTFd1,CANDARAZ.TTFd1,CONSOLA.TTFd1,CONSOLAB.TTFd1,CONSOLAI.TTFd1,CONSOLAZ.TTFd1,CONSTAN.TTFd1,CONSTANB.TTFd1,CONSTANI.TTFd1,CONSTANZ.TTFd1,CORBEL.TTFd1,CORBELB.TTFd1,CORBELI.TTFd1,CORBELZ.TTFd1,HandelGotD.ttf[txtsetup_files]calibri.ttf = 100,,,,,,,22,0,0,,1,22calibrib.ttf = 100,,,,,,,22,0,0,,1,22calibrii.ttf = 100,,,,,,,22,0,0,,1,22calibriz.ttf = 100,,,,,,,22,0,0,,1,22segoepr.ttf = 100,,,,,,,22,0,0,,1,22segoeprb.ttf = 100,,,,,,,22,0,0,,1,22segoesc.ttf = 100,,,,,,,22,0,0,,1,22simheia.ttf = 100,,,,,,,22,0,0,simhei.ttf,1,22segoeuiz.ttf = 100,,,,,,,22,0,0,,1,22segoeuii.ttf = 100,,,,,,,22,0,0,,1,22segoeuib.ttf = 100,,,,,,,22,0,0,,1,22segoeui.ttf = 100,,,,,,,22,0,0,,1,22segoescb.ttf = 100,,,,,,,22,0,0,,1,22CAMBRIA.TTC = 100,,,,,,,22,0,0,,1,22CAMBRIAB.TTF = 100,,,,,,,22,0,0,,1,22CAMBRIAI.TTF = 100,,,,,,,22,0,0,,1,22CAMBRIAZ.TTF = 100,,,,,,,22,0,0,,1,22CANDARA.TTF = 100,,,,,,,22,0,0,,1,22CANDARAB.TTF = 100,,,,,,,22,0,0,,1,22CANDARAI.TTF = 100,,,,,,,22,0,0,,1,22CANDARAZ.TTF = 100,,,,,,,22,0,0,,1,22CONSOLA.TTF = 100,,,,,,,22,0,0,,1,22CONSOLAB.TTF = 100,,,,,,,22,0,0,,1,22CONSOLAI.TTF = 100,,,,,,,22,0,0,,1,22CONSOLAZ.TTF = 100,,,,,,,22,0,0,,1,22CONSTAN.TTF = 100,,,,,,,22,0,0,,1,22CONSTANB.TTF = 100,,,,,,,22,0,0,,1,22CONSTANI.TTF = 100,,,,,,,22,0,0,,1,22CONSTANZ.TTF = 100,,,,,,,22,0,0,,1,22CORBEL.TTF = 100,,,,,,,22,0,0,,1,22CORBELB.TTF = 100,,,,,,,22,0,0,,1,22CORBELI.TTF = 100,,,,,,,22,0,0,,1,22CORBELZ.TTF = 100,,,,,,,22,0,0,,1,22HandelGotD.ttf = 100,,,,,,,22,0,0,,1,22[i386_compress]rvmtemp\extracted\calibri.ttfrvmtemp\extracted\calibrib.ttfrvmtemp\extracted\calibrii.ttfrvmtemp\extracted\calibriz.ttfrvmtemp\extracted\segoepr.ttfrvmtemp\extracted\segoeprb.ttfrvmtemp\extracted\segoesc.ttfrvmtemp\extracted\simheia.ttfrvmtemp\extracted\segoeuiz.ttfrvmtemp\extracted\segoeuii.ttfrvmtemp\extracted\segoeuib.ttfrvmtemp\extracted\segoeui.ttfrvmtemp\extracted\segoescb.ttfrvmtemp\extracted\CAMBRIA.TTCrvmtemp\extracted\CAMBRIAB.TTFrvmtemp\extracted\CAMBRIAI.TTFrvmtemp\extracted\CAMBRIAZ.TTFrvmtemp\extracted\CANDARA.TTFrvmtemp\extracted\CANDARAB.TTFrvmtemp\extracted\CANDARAI.TTFrvmtemp\extracted\CANDARAZ.TTFrvmtemp\extracted\CONSOLA.TTFrvmtemp\extracted\CONSOLAB.TTFrvmtemp\extracted\CONSOLAI.TTFrvmtemp\extracted\CONSOLAZ.TTFrvmtemp\extracted\CONSTAN.TTFrvmtemp\extracted\CONSTANB.TTFrvmtemp\extracted\CONSTANI.TTFrvmtemp\extracted\CONSTANZ.TTFrvmtemp\extracted\CORBEL.TTFrvmtemp\extracted\CORBELB.TTFrvmtemp\extracted\CORBELI.TTFrvmtemp\extracted\CORBELZ.TTFrvmtemp\extracted\HandelGotD.ttfricks another thing i doen't if name my ini file Entries_fonts.ini and thanks Edited July 29, 2008 by ferigno1 Quote
ricktendo Posted July 30, 2008 Posted July 30, 2008 Works perfect for me, try removing this because it does not do anyting. I only added it so you can understand it better; adds the stuff under [AddFonts] in the Entries_*.iniHere is my test HIVESFT.INF with your Entries_fonts.ini Quote
lib9 Posted July 30, 2008 Author Posted July 30, 2008 (edited) ricks witch program do you use to integrate your addon nlite or rvm? because i have seen strange things like when i integrate my addon fonts with nlite its works ( by evidence i find the reg entries in hivesft.inf ) but when i integrate it with rvm i don't find the reg entries and i have looking at your entries in vista fonts addon you use the section called [ExtraFileEdits] works using either rvm or nlite but when i use [EditFile] work just with nlite just to clarify some points and i forgot thank you again ricks for all theses informations . Edited July 30, 2008 by ferigno1 Quote
ricktendo Posted July 30, 2008 Posted July 30, 2008 Yea I use nLite, I never thought to check if RVMi was the problem Quote
lib9 Posted July 30, 2008 Author Posted July 30, 2008 (edited) yes me too but the reality is rvm doesn't modify hivesft.inf you can see for yourself if i have made a mistake or something like that anyway ricks one finally thing whats difference between [ExtraFileEdits] and [EditFile] so i can make a font addon using this section .best regards Edited July 30, 2008 by ferigno1 Quote
ricktendo Posted July 30, 2008 Posted July 30, 2008 With ExtraFileEdits you can Moddify/Edit/Add any line in any text file, so If you want to use that instead it would have to go something like this[ExtraFileEdits]HIVESFT.INF|[AddReg]|[AddReg]<NEXT>HKLM,"RegString1Here"<NEXT>HKLM,"RegString2Here"<NEXT>HKLM,"RegString3Here"<NEXT>etc<NEXT>etc|1What it will do is locate the line with [AddReg] and it will change it to what you have after the second bracketBTW <NEXT> just tells it to put this on the next line under the one beforeYou can read more about this here Quote
lib9 Posted July 31, 2008 Author Posted July 31, 2008 so what i can say thank you so muuuuuuuch ricks :thumbsup_anim: :thumbsup_anim: i understand now i am able to make my fonts addon completly and when i read this item i saw that its works for to integrators nlite and rvm Quote
Guest Posted August 4, 2008 Posted August 4, 2008 Thanks For Instruction :heart: :thumbsup_anim: Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.