I retrieved an old script which may help.
It was designed to change the default font but it may be used to changee the one used in comments.
Here is the script, I give some explanations just after the code.
--{code}
--[SCRIPT set_iWork_default_font]
(*
Si vous choisissez "Pages" vous verrez:
/* ----- Font Names */
"FONT_Helvetica" = "Helvetica";
"FONT_Helvetica-Bold" = "Helvetica-Bold";
"FONT_Helvetica-Oblique" = "Helvetica-Oblique";
"FONT_LucidaGrande" = "LucidaGrande";
La police utilisée par défaut dans les textes, les notes et les tables est celle dont le descripteur est "FONT_Helvetica"
éditez la ligne correspondante comme suit:
"FONT_Helvetica" = "_nomDeVotrePolice_";
Par exemple, pour utiliser Palatino, remplacez _nomDeVotrePolice_ par "Palatino-Roman"
Enregistrez le fichier ainsi modifié par (cmd + S)
Si vous choisissez "Numbers" vous verrez:
/* ----- Font Names */
"FONT_Helvetica" = "Helvetica";
"FONT_HelveticaNeue" = "HelveticaNeue";
"FONT_HelveticaNeue-Bold" = "HelveticaNeue-Bold";
"FONT_LucidaGrande" = "LucidaGrande";
"FONT_MarkerFelt-Thin" = "MarkerFelt-Thin";
La police utilisée par défaut dans les textes, les notes et les tables est celle dont le descripteur est "FONT_HelveticaNeue"
éditez la ligne correspondante comme suit:
"FONT_HelveticaNeue" = "_nomDeVotrePolice_";
Si vous choisissez "Keynote" vous verrez:
"STYLE_Series_2" = "Series_2";
"STYLE_None" = "Aucun";
"STYLE_Series_5" = "Series_5";
"STYLE_Series_3" = "Series_3";
"FONT_LucidaGrande" = "LucidaGrande";
"FONT_Helvetica" = "Helvetica";
"STYLE_Free Form" = "Format libre";
"STYLE_Series_1" = "Series_1";
"FONT_GillSans" = "GillSans";
"STYLE_Normal" = "Normal";
"STYLE_Series_0" = "Series_0";
"FONT_MarkerFelt-Thin" = "MarkerFelt-Thin";
"STYLE_Series_4" = "Series_4";
La police utilisée par défaut dans les textes, les notes et les tables est celle dont le descripteur est "FONT_GillSans"
éditez la ligne correspondante comme suit:
"FONT_GillSans" = "_nomDeVotrePolice_";
Une liste de 564 noms de polices est disponible sur mon iDisk:
<http://idisk.me.com/koenigyvan-Public?view=web>
Téléchargez:
For_iWork:des_polices.numbers.zip
********************
If you choose "Pages" you will see:
/* ----- Font Names */
"FONT_Helvetica" = "Helvetica";
"FONT_Helvetica-Bold" = "Helvetica-Bold";
"FONT_Helvetica-Oblique" = "Helvetica-Oblique";
"FONT_LucidaGrande" = "LucidaGrande";
The font used as default for tables is the one whose descriptor is "FONT_Helvetica"
edit the line as:
"FONT_Helvetica" = "_yourFontName_";
For instance, to use Palatino, replace "_yourFontName_" by "Palatino-Roman"
Save the file (cmd + S)
If you choose "Numbers" you will see:
/* ----- Font Names */
"FONT_Helvetica" = "Helvetica";
"FONT_HelveticaNeue" = "HelveticaNeue";
"FONT_HelveticaNeue-Bold" = "HelveticaNeue-Bold";
"FONT_LucidaGrande" = "LucidaGrande";
"FONT_MarkerFelt-Thin" = "MarkerFelt-Thin";
The font used as default for tables is the one whose descriptor is "FONT_HelveticaNeue"
edit the line as:
"FONT_HelveticaNeue" = "_yourFontName_";
If you choose "Keynote" you will see:
"STYLE_Series_2" = "Series_2";
"STYLE_None" = "Aucun";
"STYLE_Series_5" = "Series_5";
"STYLE_Series_3" = "Series_3";
"FONT_LucidaGrande" = "LucidaGrande";
"FONT_Helvetica" = "Helvetica";
"STYLE_Free Form" = "Format libre";
"STYLE_Series_1" = "Series_1";
"FONT_GillSans" = "GillSans";
"STYLE_Normal" = "Normal";
"STYLE_Series_0" = "Series_0";
"FONT_MarkerFelt-Thin" = "MarkerFelt-Thin";
"STYLE_Series_4" = "Series_4";
The font used as default for tables is the one whose descriptor is "FONT_GillSans"
edit the line as:
"FONT_GillSans" = "_yourFontName_";
A list of 564 names is available on my iDisk:
<http://idisk.me.com/koenigyvan-Public?view=web>
Download:
For_iWork:des_polices.numbers.zip
Yvan KOENIG (Vallauris, FRANCE)
5 mars 2009
2009/08/31 added treatment of flatfiles.
*)
onrun
ifmyparleFrancais()then
setprompt1to"Choisir l'application"
setprompt2to"Choisir un modèle"
setprompt3to"Choisir une localisation"
else
setprompt1to"Choose the application"
setprompt2to"Choose a template"
setprompt3to"Choose a localization"
endif
(*
choose the application *)
settheApptochoose from list{"Pages","Numbers","Keynote"}with promptprompt1
iftheAppisfalsethenerror-128
settheApptoitem1oftheApp
(*
define some parameters *)
iftheAppis"Pages"then
setpermittedto{"com.apple.iWork.Pages.template","com.apple.iWork.Pages.sfftemplate"}
setsubto"Templates"
settheStringsto"Localizable.strings"
elseiftheAppis"Numbers"then
setpermittedto{"com.apple.iWork.Numbers.template","com.apple.iWork.Numbers.sfftemplate"}
setsubto"Templates"
settheStringsto"Localizable.strings"
else(* it is "Keynote" *)
setpermittedto{"com.apple.iWork.Keynote.kth","com.apple.iWork.Keynote.sffkth"}
setsubto"Themes"
settheStringsto"fontsAndText.strings"
endif
(*
choose the template *)
setp2fto(path toapplications folderastext)&"iWork '09:"&theApp&".app:Contents:Resources:"&sub
if5>(system attribute"sys2")then(*
it's Mac OS X 10.4.11 *)
setallowedtopermitted
else(*
it's Mac OS X 10.5.6 with a bug with Choose File *)
setallowedto{}
endif
setp2fto(choose filewith promptprompt2default location(p2fasalias)of typeallowed)astext
ifp2fdoes notendwith":"thensetp2ftop2f&":"(* ADDED *)
(*
choose the localization folder *)
setp2ftop2f&"Contents:Resources"
setp2fto(choose folderdefault location(p2fasalias)with promptprompt3)astext
(*
open the localizable.strings file *)
tellapplication"Finder"
setnbtocountof(filesoffolderp2fwhosenamestarts with"localizable")
ifnb=1thenduplicatefiletheStringsoffolderp2f(* as there is no backup, duplicate "localizable.strings" for safe *)
endtell-- Finder
tellapplication"TextEdit"
openfile(p2f&theStrings)
endtell
endrun
--=====
onparleFrancais()(* Check if Pages is running in French *)
localz
try
tellapplication"Pages"tosetztolocalized string"Cancel"
onerror
setzto"Cancel"
endtry
return(z="Annuler")
endparleFrancais
--=====
--[/SCRIPT]
--{code}
Run the script.
It will ask you to select the app
the template
the localized version
Then it open the relevant resource in TextEdit.
You will see the line :
"FONT_LucidaGrande" = "LucidaGrande";
Edit it as :
"FONT_LucidaGrande" = "here_put_the_name_of_a_font_which_may_be_used_in_italic";
Save the file
That's all folks.
Here is a list of such fonts. Some are delivered with the operating system, some are installed with iWork, some are borrowed from trial versions of Adobe inDesign or Mer…Soft Office.
ACaslonPro-Regular
AGaramondPro-Regular
AppleGaramond-Book
ArialMT
ArnoPro-Regular
Baskerville
BernhardModernStd-Roman
BitstreamVeraSans-Roman
BitstreamVeraSerif-Roman
BodoniSvtyTwoITCTT-Book
BodoniSvtyTwoOSITCTT-Book
BodoniSvtyTwoSCITCTT-Book
Bookman-Demi
Bookman-Light
BRADDON
BRODY
CAMPBELL
CaslonAntique
CenturyGothic
ChaparralPro-Regular
Cochin
Courier
CourierNewPSMT
CourierStd
Didot
EuphemiaUCAS
FIRSTHOME
Futura-Medium
GaramondPremrPro
Georgia
GillSans
Helvetica
HelveticaNeue
HoeflerText-Regular
HUNTSON
IRIS
KENDRIC
LetterGothicStd
LYNN
MAXIMO
MinionPro-Regular
Mshtakan
Myriad
MyriadPro-Regular
NewPeninimMT
NewsGothicStd
NuevaStd-Regular
Optima-Regular
Palatino-Roman
PrestigeEliteStd
Times-Roman
TimesNewRomanPSMT
TrebuchetMS
Verdana
WarnockPro-Regular
After that, when you will create a document from the edited template, comments will be crated with the new font so, you will be able to apply italic to all or part of the comment.
Yvan KOENIG (VALLAURIS, France) 8 mai 2011 12:01:29