About Meslo LG DZ v1

of 5
6 views
PDF
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Document Description
About Meslo LG DZ Version 1.00 Meslo LG DZ is a customized version of Apple's Menlo-Regular font (which is a customized Bitstream Vera Sans Mono). In Snow Leopard, Menlo-Regular is now the preferred and default font for Apple's developer tools and also the Terminal (unless you changed the font settings for these apps yourself before upgrading to SL - your changes will stay in place). I really like Menlo, but I had my nitpicky gripes with it: 1. 2. The default vertical (line) spacing is just way
Document Share
Document Tags
Document Transcript
  About Meslo LG DZ  Version 1.00 Meslo LG DZ is a customized version of Apple's Menlo-Regular font (which is a customizedBitstream Vera Sans Mono).In Snow Leopard, Menlo-Regular is now the preferred and default font for Apple's developertools and also the Terminal (unless you changed the font settings for these apps yourself beforeupgrading to SL - your changes will stay in place).I really like Menlo, but I had my nitpicky gripes with it:1.The default vertical (line) spacing is just way to cramped for me, and also2.I am not particularily fond of the horizontal baseline alignment of the asterisk.That's why I decided to customize Menlo, regarding these “issues”. The tricky part is keeping allthe custom tables, hints, etc. intact when you adjust the globally very a f  ecting stu f  that resultsin vertical spacing.The LG in Meslo LG stands for Line Gap. The idea behind it is to allow the user to have somecontrol over vertical spacing by choosing one of three line gap variants: small, medium and large(Meslo LG S, Meslo LG M and Meslo LG L respectively). DZ stands for dotted zero. Meslo LG hasa slashed zero by default.If you're interested you can find screenshots showing Menlo and Meslo in comparison below.This font is a derivative work of an existing font set. I left copyright and trademark informationcompletely untouched. If I it is allowed I'll make it public domain in the sense that you can dowhat you want with it. However, I can't make it open source, because I don't own any sources.I just tweaked a few settings, glyph positions and hintings here and there.And of course it doesn't come with any warranty whatsoever. If you need to have a license findone below. Also at this point, as often required by Apple, Inc., I want to make it clear that I amnot a  liated with Apple in any way and any customizations happened purely on my own thoughtout of personal non-profit interest.Have Fun!André Berg Comparison To Apple's Menlo Xcode Editor View This code snippet is taken from Apple's AnimatedTableView sample code.The method is shown cut o f  in order to keep the example text short.You can find the full code sample at:   AnimatedTableView Menlo  Regular   11pt   (Apple) - (void)editColor:(NSColor*)color locatedAtScreenRect:(NSRect)rect { [self _createWindowIfNeeded]; [self _selectColor:color];  NSPointsrcin = rect.srcin;  NSRectwindowFrame = [_window frame];  // The srcin is the lower left; subtract the window's heightsrcin.y-=NSHeight(windowFrame);  // Center the popup window under the rectsrcin.y+=floor(NSHeight(rect) /3.0); srcin.x-=floor(NSWidth(windowFrame) /2.0);  [_window setFrameOrigin:srcin]; [_window popup]; } Meslo  LG   M   DZ   11pt  - (void)editColor:(NSColor*)color locatedAtScreenRect:(NSRect)rect { [self _createWindowIfNeeded]; [self _selectColor:color];  NSPointsrcin = rect.srcin;  NSRectwindowFrame = [_window frame];  // The srcin is the lower left; subtract the window's heightsrcin.y-=NSHeight(windowFrame);  // Center the popup window under the rectsrcin.y+=floor(NSHeight(rect) /3.0); srcin.x-=floor(NSWidth(windowFrame) /2.0);  [_window setFrameOrigin:srcin]; [_window popup]; } Note  the  vertical   line  spacing  changes  and   the  re-positioned   and   re-hinted   asterisk.You  can  view   a  comparison  between  all   three  Meslo  LG   DZ   variants  at   the  end.  Terminal These comparisons just show a simple terminal printout. If you think the vertical spacing is a bit toomuch in the second screenshot, remember: Meslo LG DZ has multiple variants for vertical line spacing.Note: If the images appear a bit blurry, that should come from printing the TextEdit text view to PDF. Menlo  Regular   11pt   (Apple)Meslo  LG   S  DZ   11pt  Using Meslo LG DZ with the Windows Console If you want to use Meslo LG fonts with the Windows console (cmd.exe) you will have to follow a specificprocedure to set a registry value that allows Meslo LG to appear in the Font Settings section of a consolewindow's Properties dialog.Microsoft has anarticleabout it in it's knowledge base.I recommend that you follow the instructions outlined in that article, but here's a quick overview of whatto do (in case the web page becomes unavailable in the future): Requirements:  You need a TrueType font which classifies itself as modern.As required by that article I have set the MS font identification bit to FF_MODERN for all Meslo LG variants. Procedure: Using regedit.exe go to the following registry key HKLM\Software\Microsoft\WindowsNT\CurrentVersion\Console\TrueTypeFont Add a REG_SZ entry with the following contents:Name = 00 Value = Meslo LG M DZ the  double  quotes  should   not   to  be  entered   ―  they   are   just   for   clarification Actually, the exact font name to enter for the Value still needs to be determined.It could be Meslo LG M DZ or MesloLGMDZ ).After you're finished making the Registry changes you need to (at least) log out and back in.Then fire up a console window and right-click in the title bar and from the context menu choose Properties .  In the dialog that opens find the font settings tab and change the raster font to Meslo LG 11pt. History v0.1Initial release.v1.0Meslo has changed it's name to Meslo LG which now includes three variants: small, medium and large.LG stands for Line Gap, so there's one variant for smaller vertical line spacing, more towards Apple'sMenlo, a normal line gap (which equals Meslo v0.1) and a large gap, which is more than twice the spaceof Apple's Menlo.In addition to Regular, there's Italic, Bold and Bold Italic font styles included for each LG variant.Tweaked the ascender/descender/line gap relationship a bit for better layout at smaller font sizes andprominent font styles. Things like underlines should be better to perceive now for the Bold and BoldItalic font styles.The asterisk (*) was tweaked for all font styles. This includes making it line up with all alignment zonesfor similar height symbol characters and fixing Menlo's absence of a slanting angle for the italic andbold italic font styles while maintaining the same readability at all sizes.v1.0Added a dotted zero version of Meslo LG which is called Meslo LG DZ.  Comparison Between LG DZ Small, Medium and Large Menlo  Regular   11pt   (Apple)  -  Baseline - (void)editColor:(NSColor*)color locatedAtScreenRect:(NSRect)rect { [self _createWindowIfNeeded]; [self _selectColor:color];  NSPointsrcin = rect.srcin;  NSRectwindowFrame = [_window frame];  // The srcin is the lower left; subtract the window's heightsrcin.y-=NSHeight(windowFrame);  // Center the popup window under the rectsrcin.y+=floor(NSHeight(rect) /3.0); srcin.x-=floor(NSWidth(windowFrame) /2.0); srcin.x+=floor(NSWidth(rect) /2.0);  [_window setFrameOrigin:srcin]; [_window popup]; } Meslo  LG   S  DZ   11pt  - (void)editColor:(NSColor*)color locatedAtScreenRect:(NSRect)rect { [self _createWindowIfNeeded]; [self _selectColor:color];  NSPointsrcin = rect.srcin;  NSRectwindowFrame = [_window frame];  // The srcin is the lower left; subtract the window's heightsrcin.y-=NSHeight(windowFrame);  // Center the popup window under the rectsrcin.y+=floor(NSHeight(rect) /3.0); srcin.x-=floor(NSWidth(windowFrame) /2.0); srcin.x+=floor(NSWidth(rect) /2.0);  [_window setFrameOrigin:srcin]; [_window popup]; } Meslo  LG   M   DZ   11pt  - (void)editColor:(NSColor*)color locatedAtScreenRect:(NSRect)rect { [self _createWindowIfNeeded]; [self _selectColor:color];  NSPointsrcin = rect.srcin;  NSRectwindowFrame = [_window frame];  // The srcin is the lower left; subtract the window's heightsrcin.y-=NSHeight(windowFrame);  // Center the popup window under the rectsrcin.y+=floor(NSHeight(rect) /3.0); srcin.x-=floor(NSWidth(windowFrame) /2.0); srcin.x+=floor(NSWidth(rect) /2.0);  [_window setFrameOrigin:srcin]; [_window popup]; } Meslo  LG   L  DZ   11pt  - (void)editColor:(NSColor*)color locatedAtScreenRect:(NSRect)rect { [self _createWindowIfNeeded]; [self _selectColor:color];  NSPointsrcin = rect.srcin;  NSRectwindowFrame = [_window frame];  // The srcin is the lower left; subtract the window's heightsrcin.y-=NSHeight(windowFrame);  // Center the popup window under the rectsrcin.y+=floor(NSHeight(rect) /3.0); srcin.x-=floor(NSWidth(windowFrame) /2.0); srcin.x+=floor(NSWidth(rect) /2.0);  [_window setFrameOrigin:srcin]; [_window popup]; }
We Need Your Support
Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

Thanks to everyone for your continued support.

No, Thanks
SAVE OUR EARTH

We need your sign to support Project to invent "SMART AND CONTROLLABLE REFLECTIVE BALLOONS" to cover the Sun and Save Our Earth.

More details...

Sign Now!

We are very appreciated for your Prompt Action!

x