Create profile and set console font

Hi,
I'm not really a powershell expert, even though i use it daily. I've been looking into creating a profile to make life easier. So i made a little script to auto create a profile and set the console properties, load some modules etc.
The one thing i have not found an answer for is how can i set the console to use Lucinda Console font in stead of that dreadful raster font?
This posting is provided "AS IS" with no warranties or guarantees and confers no rights

Hi,
Thanks. I am aware of the console settings available to powershell, but thanks anyway.
So the reg settings should be stored for the current user only in the key HKCU\Console. That will only affect the logged on user. It is not dynamic, as you say, but that's ok. I just need to have it set.
So changing the following settings would change the font for CMD.exe and powershell.exe:
REG ADD HKCU\Console /v FaceName /d "Lucida Console" /f
REG ADD HKCU\Console /v FontSize /t REG_DWORD /d 0x000c0000 /f
REG ADD HKCU\Console /v FontWeight /t REG_DWORD /d 0x00000190 /f
REG ADD HKCU\Console /v FontFamily /t REG_DWORD /d 0x36 /f
Push-Location
Set-Location HKCU:\Console
New-Item ".\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe"
Set-Location ".\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe"
New-ItemProperty . FaceName -type STRING -value "Lucida Console"
New-ItemProperty . FontFamily -type DWORD -value 0x00000036
New-ItemProperty . FontSize -type DWORD -value 0x000c0000
New-ItemProperty . FontWeight -type DWORD -value 0x00000190
New-ItemProperty . HistoryNoDup -type DWORD -value 0x00000000
New-ItemProperty . QuickEdit -type DWORD -value 0x00000001
Pop-Location
Push-Location
Set-Location HKCU:\Console
New-Item '.\%SystemRoot%_SysWOW64_WindowsPowerShell_v1.0_powershell.exe'
Set-Location '.\%SystemRoot%_SysWOW64_WindowsPowerShell_v1.0_powershell.exe'
New-ItemProperty . FaceName -type STRING -value "Lucida Console"
New-ItemProperty . FontFamily -type DWORD -value 0x00000036
New-ItemProperty . FontSize -type DWORD -value 0x000c0000
New-ItemProperty . FontWeight -type DWORD -value 0x00000190
New-ItemProperty . HistoryNoDup -type DWORD -value 0x00000000
New-ItemProperty . QuickEdit -type DWORD -value 0x00000001
Pop-Location
So, that should've done the trick. I can open cmd.exe and powershell.exe, open the system menu, go to defaults, and verify that the settings are in fact set. However, the settings just doesn't take effect. I even opened the properties dialog box for the
PowerShell shortcut, to check the settings and I can still confirm that it had set the font correctly.
Still, whenever I launch PowerShell, I am greeted with the ugly raster font. So, the last check I did was to go into properties in the PowerShell window system menu, and check the font.
It was set to raster. So I changed it. The next time I opened PowerShell, it was back to raster.
So, no matter where I set it, or what I set, it still goes back to raster every da** time.
Where i come from, we call this a bug... A very annoying bug...
Edit: Btw, this is only happening on a handful of servers, not all. On some i am able to successfully script changing the font.
This posting is provided "AS IS" with no warranties or guarantees and confers no rights

Similar Messages

  • How to add text in .ai file and  set position, font, size and colour

    I want to place multiple lines of of text (individually) into .ai file and set size, font, colour and position for each.
    Preferably text should have origin in a single point (rather than be framed)
    Hope anyone can help me out.
    Thank you in advance.

    Here's what's in the Scripting Reference
    Creating and modifying text frames
    // Creates a document with text frames displaying path, area and point
    // text, changes the content of each frame then deletes the 2nd frame
    // create a new document
    var docRef = documents.add();
    // create 3 new textFrames (area, line, point)
    // Area Text
    var rectRef = docRef.pathItems.rectangle(700, 50, 100, 100);
    var areaTextRef = docRef.textFrames.areaText(rectRef);
    areaTextRef.contents = "TextFrame #1";
    areaTextRef.selected = true;
    // Line Text
    var lineRef = docRef.pathItems.add();
    lineRef.setEntirePath( Array(Array(200, 700), Array(300, 550) ) );
    var pathTextRef = docRef.textFrames.pathText(lineRef);
    pathTextRef.contents = "TextFrame #2";
    pathTextRef.selected = true;
    // Point Text
    var pointTextRef = docRef.textFrames.add();
    pointTextRef.contents = "TextFrame #3";
    pointTextRef.top = 700;
    pointTextRef.left = 400;
    pointTextRef.selected = true;
    redraw();
    // count the TextFrames
    var iCount = docRef.textFrames.length;
    var sText = "There are " + iCount + " TextFrames.\r"
    sText += "Changing contents of each TextFrame.";
    // change the content of each
    docRef.textFrames[0].contents = "Area TextFrame.";
    docRef.textFrames[1].contents = "Path TextFrame.";
    docRef.textFrames[2].contents = "Point TextFrame.";
    redraw();
    docRef.textFrames[1].remove();
    redraw();
    // count again
    var iCount = docRef.textFrames.length;
    Your are looking stuff with the pointTextRef.

  • Help creating apple script to create folder and set access levels

    I'm trying to create folders in FileMaker Pro using apple script and need some help in setting the access level for the folders.  I want to set both Staff and everyone to Read and Write access.   Secondly I would like to have a function key set on the desktop to create new folders and set that same access level.  The default access is Read and I can not find a way to change that.
    Thanks

    I'm trying to create folders in FileMaker Pro using apple script and need some help in setting the access level for the folders.  I want to set both Staff and everyone to Read and Write access.   Secondly I would like to have a function key set on the desktop to create new folders and set that same access level.  The default access is Read and I can not find a way to change that.
    Thanks

  • Creating group and setting owner

    Hello,
         When I am trying to create a group, FIM is picking up the my account (in which I am logged in) and setting that as the owner of a group unless I manually delete that and put another user as the owner. Can we change the settings somewhere
    so that it doesn't take the default logged in account?
         Please let me know, Any help will be much appreciated.
    Thanks.

    Hello,
    as far as I know that functionality his some code behind which can not be changed.
    But you can Trigger a workflow to clear the owner attribute on group creation.
    Keep in mind that reference values can only be cleared by setting a " " (space) to the attribute by using the function evaluator.
    Regards
    Peter
    Peter Stapf - ExpertCircle GmbH - My blog:
    JustIDM.wordpress.com

  • Create Parameter  and set Parameter properties using API

    I want to create a parameter with RAS API.
    Here I want to create a string parameter and initialize it and set the values.
    This is the code I use to create a parameter.
    I use here the RAS API, because I want to create a parameter
            Dim myParameterField As New CrystalDecisions.ReportAppServer.DataDefModel.ParameterField
            myParameterField.ParameterType = CrParameterFieldTypeEnum.crParameterFieldTypeReportParameter
            myParameterField.ValueRangeKind = CrParameterValueRangeKindEnum.crParameterValueRangeKindDiscrete
            myParameterField.Type = CrFieldValueTypeEnum.crFieldValueTypeStringField
            myParameterField.Name = "mystring"
            m_RasDoc.DataDefController.ParameterFieldController.Add(myParameterField)
    later, I call the following code to set the values of the parameter "mystring".
    I use DOTNET-SDK, because I dont know how to do this with the RAS API
            Dim crParameterDiscreteValue As ParameterDiscreteValue
            Dim crParameterFieldDefinitions As ParameterFieldDefinitions
            Dim crParameterFieldLocation As ParameterFieldDefinition
            Dim crParameterValues As ParameterValues
            crParameterFieldDefinitions = m_crNetDoc.DataDefinition.ParameterFields
            crParameterFieldLocation = crParameterFieldDefinitions.Item("mystring")
            crParameterValues = crParameterFieldLocation.CurrentValues
            crParameterDiscreteValue = New CrystalDecisions.Shared.ParameterDiscreteValue
            crParameterDiscreteValue.Value = "myvalue"
            crParameterValues.Add(crParameterDiscreteValue)
            crParameterFieldLocation.ApplyCurrentValues(crParameterValues)
            crParameterFieldLocation.ApplyDefaultValues(crParameterValues)
            crParameterFieldLocation.IsOptionalPrompt = False
    later, I save this report to disk.
    When I open the generated report in the Crystal Designer, there are no default values for this created parameter 'mystring'.
    Is it possible to set DefaultValues using RAS API?
    Can I populate the combobox for a parameter in parameter Dialog? Can I set the standard value field?
    Thank you
    Otto

    Hello,
    at first i want to create a new parameter. Then set the parameter value in the parameterlist and store a standard default value.
    I want if this stored report will be opened with the Crystal Reports Designer and I start with the view button, the default values should be set in the parameter text field, so that the user must not type in the parameter values.
    Please help me!
    Thank to all helpers.

  • Creating Items and setting the properties programtically

    Hi ,
    Can any one provide me some details of how to create item programatically and setting its properties.
    Ex: I have to create a message choice
    set its id, picklist view definition ,picklist display attribute, picklist value attribute, prompt, action type and event
    Regards,
    Krishna

    Hi Krishna,
    OAMessageChoiceBean abc = (OAMessageChoiceBean) createWebBean
    (pageContext, MESSAGE_CHOICE_BEAN);
    abc.setPickListViewUsageName("ListVO");
    abc.setListValueAttribute(" ");
    abc.setListDisplayAttribute(" " );
    abc.setID("ID");
    this wl help u I guess..
    for more details Refer JDev Guide.

  • Create form and set rules

    Hi
    I want to create for example Request
    Shipping form.
    i was create a form and publish to a SharePoint library.i was set the  Repeating Section
    for choice commodityand its price.
    users can select any number commodity. but i have two request:
    1- the user do not have ability to select
    same commodity within a
    dayaccording to picture.
    2- when select some commodity, in Final Price control we have a total price.

    Hi Yuzarsiv, to check for duplicate entries, you should use an event receiver (first link below). To total the prices, see the second link. The third link is for additional reference.
    https://salnikan.wordpress.com/2011/07/26/prevention-of-duplicate-entries-based-on-two-or-more-columns-in-a-sharepoint-list/
    https://support.office.microsoft.com/en-us/article/Add-the-values-in-one-or-more-columns-of-a-repeating-table-or-section-3bdc1062-5352-49d4-a851-d7719b016443?CorrelationId=dcd2f32c-5cf4-4e1a-9f16-ed005ccb4fa1&ui=en-US&rs=en-US&ad=US
    http://www.bizsupportonline.net/use-repeating-tables-infopath.htm
    cameron rautmann

  • Creating XMLDocuments and setting their DTD

    Hello,
    i am exporting java objects to XML. I can construct a DOM with a XMLDocument and using its print method export it.
    What i was unable to do so far was setting the DTD of these documents.
    If i construct a parser, parse the DTD and then get the DTD via
    Document doc = parser.getDocument() and
    DocType dtd = doc.getDocumentType() how
    do i set the DTD of the freshly constructed XMLDocuments to use this one in order to be able to check the correctness of the documents using this DTD at a later time?
    Thanks.
    Regards,
    Dirk

    Your method of getting the DTD object is correct. However, we do not do any validation while creating the DOM tree
    using the DOM APIs. So setting the DTD in the Document will not help in validating the DOM tree that is constructed.
    The only way to validate an XML file is to parse the XML document using DOMParser or SAXParser.
    Oracle XML Team
    null

  • When i inter to options and set the font in the content tab to larger number like 20 or another number and click ok it not respond and the font stell as it is what i can do for solving that problem ?

    when opening the firefox page and go to search the font is small and when try to make it large throught the content tab it not respond

    Hi Gaurav 
    I already locked for a OSS note, but i could not find the answer
    Please, Could you tell me how you solve the problem?
    Thanks
    Ariel

  • Invalid Page Fault Error Messages - ICC Profiles and Fonts

    Possible causes of these error messages include bad ICC profiles and/or bad fonts. See below for corrective measures

    Q: Message reads:
    PHOTOSHP caused an invalid page fault in module
    KERNEL32.DLL at 017f:bff7b9f5. Registers:
    EAX=796692e0 CS=017f EIP=bff7b9f5 EFLGS=00210202 EBX=00d0fe28 SS=0187 ESP=00c10000...
    A: You have an incompatible or corrupt ICC profile in your
    Windows/System/Color folder (win 98/98SE/Me) or ./system32/spool/drivers/color (win2k).
    Make a temporary folder, ICMs, under and move all the
    ICM and ICC files to that folder.
    Start PS and make sure it restarts OK.
    Now move back JUST THE PROFILES YOU NEED to Windows\System\Color (win 98/98SE/Me) or ./system32/spool/drivers/color (win2k)
    Also see: http://www.adobe.com/support/techdocs/1c4f6.htm

  • General Question on Profiles and when to use them

    Hi
    I have inherited a database, from our previous DBA. Recently one of our user password expired causing access issues within our application.
    On investigation, I noticed that we have a default profile, with the password expiration in place.
    We want to make the password expiration to be unlimited.
    My question is, what is the best practice for doing this?
    Is it recommended to create a seperate profile, other than the default or
    Is it OK to just keep one profile remove the restriction on that profile.
    Our database contains only 3 users (outside the oracle users) which are, the schema owner, 2 web users for different functionality.
    If there are best practices documented, then I'm willing to read through it, if someone can point me to it. Currently I have only found, documentation on profles and how they are used, but none show what are the best practices recommended for oracle.
    Thanks in advance.
    Div.

    Hi Helios
    Thank you for your response.
    I read the below :
    Password Management is setup by DBAs using Oracle Profiles. A general recommendation is to assign only those schemas a profile with password aging an expiration features if the users have the ability to independently change their password from their end-user application when the password expires, usually this means the application they use must have correctly implemented the OCIPasswordChange() OCI call such as sqlplus.
    So would you recommend that I just keep my default profile and set the password expiration to unlimited, as that is what I understand from the above.
    Thank you for your quick response.
    thanks
    Div.

  • How to set multi fonts in one textItem?

    I have a textItem with Chinese & English. I want to set Chinese and English in different fonts, but the script can only set one font. So, when I set the textItem in western fonts, the Chinese can't display correctly (display block). When I set it to Chinese fonts, the English letters display in Chinese font.
    Is there anyway to fix this problem?
    I use the Photoshop's original tools to set Chinese font first and set western font again, the font of English letters in textItem will change to the western font and the Chinese text will keep the Chinese font I set first time. I wonder is there the same way to set font with script?
    Thx guys.

    This might serve as an example:
    // create a type layer with more than one font;
    // 2013, use at your own risk;
    #target photoshop
    if (app.documents.length > 0) {
    var theText = [
    ["this is a text", 12, "Helvetica"],
    ["this is another font", 15, "Times-Roman"]
    // create;
    createPointTextMoreCompl (theText, 50, 50);
    ////// create point text layer //////
    function createPointTextMoreCompl (theArray, theX, theY) {
    if (theArray[0].length > 0) {
    // join the texts;
    var theText =  new String;
    for (var m = 0; m < theArray.length; m++) {
    theText = theText + " " + theArray[m][0]
    // =======================================================
    var idMk = charIDToTypeID( "Mk  " );
        var desc4 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref2 = new ActionReference();
            var idTxLr = charIDToTypeID( "TxLr" );
            ref2.putClass( idTxLr );
        desc4.putReference( idnull, ref2 );
        var idUsng = charIDToTypeID( "Usng" );
            var desc5 = new ActionDescriptor();
            var idTxt = charIDToTypeID( "Txt " );
    // text;
            desc5.putString( idTxt, theText );
            var idwarp = stringIDToTypeID( "warp" );
                var desc6 = new ActionDescriptor();
                var idwarpStyle = stringIDToTypeID( "warpStyle" );
                var idwarpStyle = stringIDToTypeID( "warpStyle" );
                var idwarpNone = stringIDToTypeID( "warpNone" );
                desc6.putEnumerated( idwarpStyle, idwarpStyle, idwarpNone );
                var idwarpValue = stringIDToTypeID( "warpValue" );
                desc6.putDouble( idwarpValue, 0.000000 );
                var idwarpPerspective = stringIDToTypeID( "warpPerspective" );
                desc6.putDouble( idwarpPerspective, 0.000000 );
                var idwarpPerspectiveOther = stringIDToTypeID( "warpPerspectiveOther" );
                desc6.putDouble( idwarpPerspectiveOther, 0.000000 );
                var idwarpRotate = stringIDToTypeID( "warpRotate" );
                var idOrnt = charIDToTypeID( "Ornt" );
                var idHrzn = charIDToTypeID( "Hrzn" );
                desc6.putEnumerated( idwarpRotate, idOrnt, idHrzn );
            var idwarp = stringIDToTypeID( "warp" );
            desc5.putObject( idwarp, idwarp, desc6 );
    // position;
            var idTxtC = charIDToTypeID( "TxtC" );
                var desc7 = new ActionDescriptor();
                var idHrzn = charIDToTypeID( "Hrzn" );
                var idPrc = charIDToTypeID( "#Prc" );
                desc7.putUnitDouble( idHrzn, idPrc, theX );
                var idVrtc = charIDToTypeID( "Vrtc" );
                var idPrc = charIDToTypeID( "#Prc" );
                desc7.putUnitDouble( idVrtc, idPrc, theY );
            var idPnt = charIDToTypeID( "Pnt " );
            desc5.putObject( idTxtC, idPnt, desc7 );
            var idtextGridding = stringIDToTypeID( "textGridding" );
            var idtextGridding = stringIDToTypeID( "textGridding" );
            var idNone = charIDToTypeID( "None" );
            desc5.putEnumerated( idtextGridding, idtextGridding, idNone );
            var idOrnt = charIDToTypeID( "Ornt" );
            var idOrnt = charIDToTypeID( "Ornt" );
            var idHrzn = charIDToTypeID( "Hrzn" );
            desc5.putEnumerated( idOrnt, idOrnt, idHrzn );
            var idAntA = charIDToTypeID( "AntA" );
            var idAnnt = charIDToTypeID( "Annt" );
            var idantiAliasSharp = stringIDToTypeID( "antiAliasSharp" );
            desc5.putEnumerated( idAntA, idAnnt, idantiAliasSharp );
            var idtextShape = stringIDToTypeID( "textShape" );
                var list1 = new ActionList();
                    var desc8 = new ActionDescriptor();
                    var idTEXT = charIDToTypeID( "TEXT" );
                    var idTEXT = charIDToTypeID( "TEXT" );
                    var idPnt = charIDToTypeID( "Pnt " );
                    desc8.putEnumerated( idTEXT, idTEXT, idPnt );
                    var idOrnt = charIDToTypeID( "Ornt" );
                    var idOrnt = charIDToTypeID( "Ornt" );
                    var idHrzn = charIDToTypeID( "Hrzn" );
                    desc8.putEnumerated( idOrnt, idOrnt, idHrzn );
                    var idTrnf = charIDToTypeID( "Trnf" );
                        var desc9 = new ActionDescriptor();
                        var idxx = stringIDToTypeID( "xx" );
                        desc9.putDouble( idxx, 1.000000 );
                        var idxy = stringIDToTypeID( "xy" );
                        desc9.putDouble( idxy, 0.000000 );
                        var idyx = stringIDToTypeID( "yx" );
                        desc9.putDouble( idyx, 0.000000 );
                        var idyy = stringIDToTypeID( "yy" );
                        desc9.putDouble( idyy, 1.000000 );
                        var idtx = stringIDToTypeID( "tx" );
                        desc9.putDouble( idtx, 0.000000 );
                        var idty = stringIDToTypeID( "ty" );
                        desc9.putDouble( idty, 0.000000 );
                    var idTrnf = charIDToTypeID( "Trnf" );
                    desc8.putObject( idTrnf, idTrnf, desc9 );
                    var idrowCount = stringIDToTypeID( "rowCount" );
                    desc8.putInteger( idrowCount, 1 );
                    var idcolumnCount = stringIDToTypeID( "columnCount" );
                    desc8.putInteger( idcolumnCount, 1 );
                    var idrowMajorOrder = stringIDToTypeID( "rowMajorOrder" );
                    desc8.putBoolean( idrowMajorOrder, true );
                    var idrowGutter = stringIDToTypeID( "rowGutter" );
                    var idPnt = charIDToTypeID( "#Pnt" );
                    desc8.putUnitDouble( idrowGutter, idPnt, 0.000000 );
                    var idcolumnGutter = stringIDToTypeID( "columnGutter" );
                    var idPnt = charIDToTypeID( "#Pnt" );
                    desc8.putUnitDouble( idcolumnGutter, idPnt, 0.000000 );
                    var idSpcn = charIDToTypeID( "Spcn" );
                    var idPnt = charIDToTypeID( "#Pnt" );
                    desc8.putUnitDouble( idSpcn, idPnt, 0.000000 );
                    var idframeBaselineAlignment = stringIDToTypeID( "frameBaselineAlignment" );
                    var idframeBaselineAlignment = stringIDToTypeID( "frameBaselineAlignment" );
                    var idalignByAscent = stringIDToTypeID( "alignByAscent" );
                    desc8.putEnumerated( idframeBaselineAlignment, idframeBaselineAlignment, idalignByAscent );
                    var idfirstBaselineMinimum = stringIDToTypeID( "firstBaselineMinimum" );
                    var idPnt = charIDToTypeID( "#Pnt" );
                    desc8.putUnitDouble( idfirstBaselineMinimum, idPnt, 0.000000 );
                    var idbase = stringIDToTypeID( "base" );
                        var desc10 = new ActionDescriptor();
                        var idHrzn = charIDToTypeID( "Hrzn" );
                        desc10.putDouble( idHrzn, 0.000000 );
                        var idVrtc = charIDToTypeID( "Vrtc" );
                        desc10.putDouble( idVrtc, 0.000000 );
                    var idPnt = charIDToTypeID( "Pnt " );
                    desc8.putObject( idbase, idPnt, desc10 );
                var idtextShape = stringIDToTypeID( "textShape" );
                list1.putObject( idtextShape, desc8 );
            desc5.putList( idtextShape, list1 );
            var idTxtt = charIDToTypeID( "Txtt" );
                var list2 = new ActionList();
                    var desc11 = new ActionDescriptor();
                    var idFrom = charIDToTypeID( "From" );
    // from;
                    desc11.putInteger( idFrom, 0 );
                    var idT = charIDToTypeID( "T   " );
    // to;
                    desc11.putInteger( idT, theArray[0][0].length + 1);
                    var idTxtS = charIDToTypeID( "TxtS" );
                        var desc12 = new ActionDescriptor();
                        var idstyleSheetHasParent = stringIDToTypeID( "styleSheetHasParent" );
                        desc12.putBoolean( idstyleSheetHasParent, true );
                        var idfontPostScriptName = stringIDToTypeID( "fontPostScriptName" );
    // font;
                        desc12.putString( idfontPostScriptName, theArray[0][2] );
    /*                    var idFntN = charIDToTypeID( "FntN" );
                        desc12.putString( idFntN, """Arial""" );
                        var idFntS = charIDToTypeID( "FntS" );
                        desc12.putString( idFntS, """Regular""" );*/
                        var idScrp = charIDToTypeID( "Scrp" );
                        desc12.putInteger( idScrp, 0 );
                        var idFntT = charIDToTypeID( "FntT" );
                        desc12.putInteger( idFntT, 1 );
                        var idSz = charIDToTypeID( "Sz  " );
                        var idPnt = charIDToTypeID( "#Pnt" );
    // size;
    //                    desc12.putUnitDouble( idSz, idPnt, theArray[0][1] * (Math.random() * 0.4 + 0.8) );
                        desc12.putUnitDouble( idSz, idPnt, theArray[0][1] );
                        var idTrck = charIDToTypeID( "Trck" );
                        desc12.putInteger( idTrck, 15 );
                        var iddigitSet = stringIDToTypeID( "digitSet" );
                        var iddigitSet = stringIDToTypeID( "digitSet" );
                        var iddefaultDigits = stringIDToTypeID( "defaultDigits" );
                        desc12.putEnumerated( iddigitSet, iddigitSet, iddefaultDigits );
                        var idmarkYDistFromBaseline = stringIDToTypeID( "markYDistFromBaseline" );
                        var idPnt = charIDToTypeID( "#Pnt" );
                        desc12.putUnitDouble( idmarkYDistFromBaseline, idPnt, 5.760000 );
                        var idtextLanguage = stringIDToTypeID( "textLanguage" );
                        var idtextLanguage = stringIDToTypeID( "textLanguage" );
                        var idgermanLanguageReformedonenineninesix = stringIDToTypeID( "germanLanguageReformed1996" );
                        desc12.putEnumerated( idtextLanguage, idtextLanguage, idgermanLanguageReformedonenineninesix );
                        var idClr = charIDToTypeID( "Clr " );
                            var desc13 = new ActionDescriptor();
                            var idRd = charIDToTypeID( "Rd  " );
                            desc13.putDouble( idRd, 0 );
                            var idGrn = charIDToTypeID( "Grn " );
                            desc13.putDouble( idGrn, 0 );
                            var idBl = charIDToTypeID( "Bl  " );
                            desc13.putDouble( idBl, 0 );
                        var idRGBC = charIDToTypeID( "RGBC" );
                        desc12.putObject( idClr, idRGBC, desc13 );
                    var idTxtS = charIDToTypeID( "TxtS" );
                    desc11.putObject( idTxtS, idTxtS, desc12 );
                var idTxtt = charIDToTypeID( "Txtt" );
                list2.putObject( idTxtt, desc11 );
    // if more than one array;
    // add the string’s lengths;
    var theCounter = theArray[0][0].length + 1;
    for (var n = 1; n < theArray.length; n++) {
                    var desc14 = new ActionDescriptor();
                    var idFrom = charIDToTypeID( "From" );
    // from;
                    desc14.putInteger( idFrom, theCounter );
                    var idT = charIDToTypeID( "T   " );
    theCounter = theCounter + 1 + theArray[n][0].length;
    // to;
                    desc14.putInteger( idT, theCounter );
                    var idTxtS = charIDToTypeID( "TxtS" );
                        var desc15 = new ActionDescriptor();
                        var idstyleSheetHasParent = stringIDToTypeID( "styleSheetHasParent" );
                        desc15.putBoolean( idstyleSheetHasParent, true );
                        var idfontPostScriptName = stringIDToTypeID( "fontPostScriptName" );
    // font;
                        desc15.putString( idfontPostScriptName, theArray[n][2] );
                        var idScrp = charIDToTypeID( "Scrp" );
                        desc15.putInteger( idScrp, 0 );
                        var idFntT = charIDToTypeID( "FntT" );
                        desc15.putInteger( idFntT, 0 );
                        var idSz = charIDToTypeID( "Sz  " );
                        var idPnt = charIDToTypeID( "#Pnt" );
    // size;
                        desc15.putUnitDouble( idSz, idPnt, theArray[n][1] );
                        var idTrck = charIDToTypeID( "Trck" );
                        desc15.putInteger( idTrck, 15 );
                        var iddigitSet = stringIDToTypeID( "digitSet" );
                        var iddigitSet = stringIDToTypeID( "digitSet" );
                        var iddefaultDigits = stringIDToTypeID( "defaultDigits" );
                        desc15.putEnumerated( iddigitSet, iddigitSet, iddefaultDigits );
                        var idmarkYDistFromBaseline = stringIDToTypeID( "markYDistFromBaseline" );
                        var idPnt = charIDToTypeID( "#Pnt" );
                        desc15.putUnitDouble( idmarkYDistFromBaseline, idPnt, 5.760000 );
                        var idtextLanguage = stringIDToTypeID( "textLanguage" );
                        var idtextLanguage = stringIDToTypeID( "textLanguage" );
                        var idgermanLanguageReformedonenineninesix = stringIDToTypeID( "germanLanguageReformed1996" );
                        desc15.putEnumerated( idtextLanguage, idtextLanguage, idgermanLanguageReformedonenineninesix );
                        var idClr = charIDToTypeID( "Clr " );
                            var desc16 = new ActionDescriptor();
                            var idRd = charIDToTypeID( "Rd  " );
                            desc16.putDouble( idRd, 0 );
                            var idGrn = charIDToTypeID( "Grn " );
                            desc16.putDouble( idGrn, 0 );
                            var idBl = charIDToTypeID( "Bl  " );
                            desc16.putDouble( idBl, 0 );
                        var idRGBC = charIDToTypeID( "RGBC" );
                        desc15.putObject( idClr, idRGBC, desc16 );
                    var idTxtS = charIDToTypeID( "TxtS" );
                    desc14.putObject( idTxtS, idTxtS, desc15 );
                var idTxtt = charIDToTypeID( "Txtt" );
                list2.putObject( idTxtt, desc14 );
            desc5.putList( idTxtt, list2 );
            var idparagraphStyleRange = stringIDToTypeID( "paragraphStyleRange" );
                var list3 = new ActionList();
                    var desc17 = new ActionDescriptor();
                    var idFrom = charIDToTypeID( "From" );
                    desc17.putInteger( idFrom, 0 );
                    var idT = charIDToTypeID( "T   " );
    // to;
                    desc17.putInteger( idT, theText.length*2);
                    var idparagraphStyle = stringIDToTypeID( "paragraphStyle" );
                        var desc18 = new ActionDescriptor();
                        var idstyleSheetHasParent = stringIDToTypeID( "styleSheetHasParent" );
                        desc18.putBoolean( idstyleSheetHasParent, true );
                        var idAlgn = charIDToTypeID( "Algn" );
                        var idAlg = charIDToTypeID( "Alg " );
                        var idCntr = charIDToTypeID( "Cntr" );
                        desc18.putEnumerated( idAlgn, idAlg, idCntr );
                        var idhyphenate = stringIDToTypeID( "hyphenate" );
                        desc18.putBoolean( idhyphenate, true );
                        var idhyphenateWordSize = stringIDToTypeID( "hyphenateWordSize" );
                        desc18.putInteger( idhyphenateWordSize, 8 );
                        var idhyphenatePreLength = stringIDToTypeID( "hyphenatePreLength" );
                        desc18.putInteger( idhyphenatePreLength, 3 );
                        var idhyphenatePostLength = stringIDToTypeID( "hyphenatePostLength" );
                        desc18.putInteger( idhyphenatePostLength, 3 );
                        var idhyphenateLimit = stringIDToTypeID( "hyphenateLimit" );
                        desc18.putInteger( idhyphenateLimit, 2 );
                        var idhyphenationZone = stringIDToTypeID( "hyphenationZone" );
                        desc18.putDouble( idhyphenationZone, 36.000000 );
                        var idhyphenateCapitalized = stringIDToTypeID( "hyphenateCapitalized" );
                        desc18.putBoolean( idhyphenateCapitalized, true );
                        var idburasagari = stringIDToTypeID( "burasagari" );
                        var idburasagari = stringIDToTypeID( "burasagari" );
                        var idburasagariStandard = stringIDToTypeID( "burasagariStandard" );
                        desc18.putEnumerated( idburasagari, idburasagari, idburasagariStandard );
                        var idtextEveryLineComposer = stringIDToTypeID( "textEveryLineComposer" );
                        desc18.putBoolean( idtextEveryLineComposer, true );
                    var idparagraphStyle = stringIDToTypeID( "paragraphStyle" );
                    desc17.putObject( idparagraphStyle, idparagraphStyle, desc18 );
                var idparagraphStyleRange = stringIDToTypeID( "paragraphStyleRange" );
                list3.putObject( idparagraphStyleRange, desc17 );
            desc5.putList( idparagraphStyleRange, list3 );
            var idkerningRange = stringIDToTypeID( "kerningRange" );
                var list4 = new ActionList();
            desc5.putList( idkerningRange, list4 );
        var idTxLr = charIDToTypeID( "TxLr" );
        desc4.putObject( idUsng, idTxLr, desc5 );
    executeAction( idMk, desc4, DialogModes.NO );

  • Consolas font size (system vs. xfce4-terminal)

    Hi there,
    I use infinality's patched fontconfig and the Consolas font for monospace. The problem I have is that 10pt Consolas is, imo, too small, whereas 11pt is too large.
    The screenshot below shows how they look on my system (in Sublime Text, but its the same in e.g. Eclipse). The thing is that xfce4-terminal somehow displays
    Consolas differently. I really like the style, but I dont know why this is the case and how to get the style in Sublime Text and Eclipse (or systemwide). Screenshots:
    http://imgur.com/aHx5Mpm,nfzOhOL,4tbp1VG
    As you can see, the terminal version is smaller than 11pt but larger than 10pt. It is indeed Consolas, I checked multiple times.

    The first two images are using the Truetype hinter, whereas the third image is using autohinter.  Not sure how some of your programs could be using one, but others using the other one?  I would check your fontconfig settings.  Also, unless your DPI is set to 72, pt heights are different than px heights (points vs. pixels).  So, there may in fact be one size inbetween the two you mentioned if you're using 96 dpi.

  • Unable to set default fonts n style in Cisco Jabber

    Unlike CUPC or WebEx Connect, no option is currently available under File -> Options for both Cisco Jabber for Windows (On Prem or Cloud deployement) to configure and set default font/size/style for Jabber.

    Got an update on this. This feature is targeted in future release where we'll allow end users to change the Outgoing Font Size n Style!!

  • Creating Diagram and model file programmatically

    Hi,
    Am trying to create the Diagram and model file programmatically.
    I used the code similar to what is there in XXDiagramEditorUtil.createDiagram().
    In the normal case (when i have an empty domain ie nothing is set into the domain object), the diagram and the domain file gets created and works fine.
    Assume my model is of type XX, and that has a list of YY.
    i create YY and set it inside XX.
    Now when i create the domain file, the <YY> is set correctly inside <XX>.
    But in the diagram file, i dont see the <children/> tags corresponding to the YY.
    How would the appropriate <children/> tags be generated ?
    i tried diagram.createChild(yy.eClass()), but the diagram file does not get generated.
    Pls help.
    AbstractTransactionalCommand command = new AbstractTransactionalCommand(editingDomain,
    Messages.XXXDiagramEditorUtil_CreateDiagramCommandLabel,
    Collections.EMPTY_LIST) {
    protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
    XXX model = createInitialModel();
    YYY yyy = XXXFactory.eINSTANCE.createYYY();
    yyy.setAttribute1("2");
    yyy.setAttribute2("name");
    model.getYYYs().add(yyy);
    attachModelToResource(model, modelResource);
    Diagram diagram = ViewService.createDiagram(model, XXXEditPart.MODEL_ID,XXXEditorPlugin.DIAGRAM_PREFERENCES_HINT);
    if (diagram != null) {
    diagramResource.getContents().add(diagram);
    diagram.setName(diagramName);
    diagram.setElement(model);
    //diagram.createChild(yyy.eClass());
    //diagram.insertChild(arg0);
    try {
    modelResource.save(.getSaveOptions());
    diagramResource.save(getSaveOptions());
    } catch (IOException e) {
    return CommandResult.newOKCommandResult();

    Hi ganesh,
    you have two options to get it working.
    The first one is using a CanonicalEditPolicy, which creates all Nodes and Edges for you based on your semantic model. This is easy to implement, but it has some drawbacks. Your editor will get dirty after opening it, because your Notation Model is changes and no layout information is available.
    The better way is to create Nodes and Edges for each semantic element you created.
    For your code snippet it might look like this:
    XXX model = createInitialModel();
    YYY yyy = XXXFactory.eINSTANCE.createYYY();
    yyy.setAttribute1("2");
    yyy.setAttribute2("name");
    model.getYYYs().add(yyy);
    attachModelToResource(model, modelResource);
    Diagram diagram = ViewService.createDiagram(model, XXXEditPart.MODEL_ID,XXXEditorPlugin.DIAGRAM_PREFERENCES_HINT);
    Node yyyView = ViewService.createNode(diagram, yyy, SemanticHints.YYY,
    ,XXXEditorPlugin.DIAGRAM_PREFERENCES_HINT);
    //Set some layout information assuming you use a XYLayout
    Bounds bounds = NotationFactory.eINSTANCE.createBounds();
    bounds.setX(70);
    bounds.setY(20);
    yyyView.setLayoutConstraint(bounds);
    Regards,
    Andreas

Maybe you are looking for

  • Print preview using crystal report in SAP B1 is very slow.

    Dear all, I face another problem. Print preview using crystal report in SAP B1 is very slow. Although i have create a layout in AR invoice form  and applying the print sequences (ie 4 prints). Does any one know how to print preview fast. Just like in

  • Select...for update and close()

    I am seeing unexpected behaviour when working with select for update, and I hope to get some clarification about it. I have RTFM and checked out any online information I could find, but didn't see too much about row level locks. See below for the pro

  • Availability Check , Credit Management

    currently when sale order is blocked due to credit management check and released after few days ( say 2 or 3 days) the availablity check is not activated .( it means that the delivery date will be the old schedule line date) but the document is relea

  • I can't find the "Sync" button under "Photos" to transfer my photos onto my iPod

    I cannot sync my photos to my iPod. I followed the directions by there is no "Sync" button under "Photos"

  • Thunar No Suitable Archive Manager Found

    Hi all i just updated my system to xfce 4.4.1-1 thunar exo etc.... The archive pluggin for thunar stopped working with No Suitable Archive Manager Found. I have both xarchiver and squeeze installed. Any ideas? JD