Jump to content

Search the Community

Showing results for tags 'Fonts'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • Forum FAQ
  • AutoIt

Calendars

  • Community Calendar

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 6 results

  1. Hi i'm trying to create a ClipPut with differents font size and font and then paste it into word document. I know in Word document, i can send("^+P") and change the font size, but it's not then best way to do if i have to change the font and size many time in the document. ShellExecute("ReportTemplate.doc") WinActivate("ReportTemplate.doc [Compatibility Mode] - Word") WinWaitActive("ReportTemplate.doc [Compatibility Mode] - Word") Sleep (1000) ClipPut("Underline Size 16: " & "Bold size 12" & "Normcal size 11") Send("^v") Any idea?
  2. How can you select the specific style of a font with multiple * .otf files? The font in question has several files: Thin Thin Italic Extra-Light Extra-Light Italic Light Light Italic Regular Regular Italic Medium Medium Italic Semi-Bold Semi-Bold Italic Bold Bold Italic Extra-Bold Extra-Bold Italic Black Black Italic But after doing several tests I can recall the font like this, without being able to specify the precise style: Local $hFamily = _GDIPlus_FontFamilyCreate("Poppins") ; Local $hFont = _GDIPlus_FontCreate($hFamily, 95, 1+2, 3) ; Example I cannot therefore select "Poppins Black Italic" but only "Poppins" Thank you
  3. On the above pic. of the ASCII table, one can see in a "normal" size, the characters below 32. I use this chars. to visualize data and comm stuff, and prefer to see it in Terminal, size 9, 400, but in Win 10 looks tiny, forcing me to use a humongous size. I'd like to see it as I did in WinXP. If anyone knows how to go about it, by tweaking something or installing a replacement font, please let me know. Thanks
  4. Is there any way to embed characters/codes/data/etc. within a text file so that when the script reads the text file to populate the edit box, said characters/codes/data/etc. can let the script know this word needs to be capitalized, that word needs to be underscored, etc.? For example, the text file would contain something along these lines... <bold>This is the title</bold> This is a <italic>sample</italic> text file. This is <underscore>only</underscore> a text file. Does that make sense? Thanx.
  5. after searching google I only find the api _WinAPI_GetStockObject ($OEM_FIXED_FONT) but I don't know how to put it work!could someone help with this?and by the way if only giving a font not installed ,how to detemine it's a fixed-with font? thx in advance!
  6. Hi, I have a problem with fonts. I'd like to use a custom font which is not originally in windows. The function I need for this is called AddFontResource from the gdi32 dll. I'm trying and fail most of the times. (Yes sometimes it works, and a rerun later it doesn't) There is one thing to say: Later in the script there is opened a child window with an transparent image. Later both windows (The main and the image) are viewed. Here is the code of the main window ;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;add constants;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;; #include <GUIConstantsEx.au3> #include <ButtonConstants.au3> #include <StaticConstants.au3> #include <EditConstants.au3> #include <WindowsConstants.au3> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;add other scripts;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; #include "load.au3" #include "new.au3" #include "save.au3" #include "savegame.au3" #include "inbox.au3" #include "game.au3" #include "manager.au3" ; Declare variables global $web = "http://gocops.sourceforge.net" global $svn = "https://gocops.svn.sourceforge.net/svnroot/gocops" ;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;main window;;;;;; ;;;;;;;;;;;;;;;;;;;;;;; ; create window $gc2tr = guicreate("Go Cops! 2: The Reanimation", 400, 500) ;get version $version = iniread ( @AppDataDir & "Go Cops!settings.ini", "general", "version", "stable") ; create title-labels $gocops = guictrlcreatelabel("Go Cops! 2", 25, 225, 350, 100) $rean = guictrlcreatelabel("The reanimation", 25, 300, 150, 50) ; set font of title labels guictrlsetfont($gocops, 48, 800, 2, "Nobile") guictrlsetfont($rean, 12, 400, 2, "Nobile") ; create version-information $ver = guictrlcreatelabel("Version 1.2 (" & $version & ")", 1, 487) ; create credit $created = guictrlcreatelabel("Created by Jeroen De Meerleer", 252, 487) ; create buttons $new = guictrlcreatebutton("New game", 50, 350, 100, 50) $save = guictrlcreatebutton("Open saved game", 250, 350, 100, 50) $manager = guictrlcreatebutton("Open manager", 150, 350, 100, 50) ; create logo $pic = guicreate("", 200, 200, 100, 25, $WS_POPUP, BitOR($WS_EX_LAYERED, $WS_EX_MDICHILD), $gc2tr) $logo = guictrlcreatepic(@AppDataDir & "Go Cops!imageslogo.gif", 0, 0, 200, 200) ; view window GUISetState(@SW_SHOW, $gc2tr) GUISetState(@SW_SHOW, $pic) while 1 ; get pressed button $msg = guigetmsg() select ; window is closed case $msg = $GUI_EVENT_CLOSE ; ask to close $close = msgbox(4, "Really quit?", "Are you sure you want to close Go Cops!?") ; if pressed yes then close Go Cops! if $close = 6 then Exit ; New game button is pressed case $msg = $new ; start new game new() ; Open saved game button is pressed case $msg = $save ; open window for selection of new game save() ; Open manager button is pressed case $msg = $manager ; open manager manager() EndSelect wend And this the file where the fonts are loaded dircreate(@AppDataDir & "Go Cops!fonts") dircreate(@AppDataDir & "Go Cops!images") inetget("https://gocops.svn.sourceforge.net/svnroot/gocops/gocops/images/icon.gif", @appdatadir & "Go Cops!imageslogo.gif",1) inetget("https://gocops.svn.sourceforge.net/svnroot/gocops/gocops/fonts/nobile.otf", @appdatadir & "Go Cops!fontsnobile.otf",1) inetget("https://gocops.svn.sourceforge.net/svnroot/gocops/gocops/fonts/nobile_bold.otf", @appdatadir & "Go Cops!fontsnobile_bold.otf",1) inetget("https://gocops.svn.sourceforge.net/svnroot/gocops/gocops/fonts/nobile_italic.otf", @appdatadir & "Go Cops!fontsnobile_italic.otf",1) inetget("https://gocops.svn.sourceforge.net/svnroot/gocops/gocops/fonts/nobile_bold_italic.otf", @appdatadir & "Go Cops!fontsnobile_bold_italic.otf",1) inetget("https://gocops.svn.sourceforge.net/svnroot/gocops/gocops/utils/RegisterFont.exe", @appdatadir & "Go Cops!coreRegisterFont.exe",1) DllCall("gdi32.dll","Int","AddFontResource","str",@appdatadir & "Go Cops!fontsnobile.otf") DllCall("gdi32.dll","Int","AddFontResource","str",@appdatadir & "Go Cops!fontsnobile_bold.otf") DllCall("gdi32.dll","Int","AddFontResource","str",@appdatadir & "Go Cops!fontsnobile_italic.otf") DllCall("gdi32.dll","Int","AddFontResource","str",@appdatadir & "Go Cops!fontsnobile_bold_italic.otf") Hope you can help me
×
×
  • Create New...